TopK Sergey Svistunov

Find the sum of the 100 largest values in a stream of binary integers as fast as possible.

Input: 100 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of the top 100 greatest values, printed as a decimal string.

Back to listMar 20, 2026 19:45olliecrowolliecrowScore: 102,227Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 19:46100,68965,427,31634,235,0003,020,0002,437,120
2Mar 20, 2026 19:45100,84165,866,01135,295,0002,016,0002,428,928
3Mar 20, 2026 19:41101,13063,827,14035,396,0002,022,0002,445,312
4Mar 20, 2026 19:45101,20356,366,55535,421,0002,024,0002,342,912
5Mar 20, 2026 19:41101,27362,049,55634,433,0003,038,0002,428,928
6Mar 20, 2026 19:42101,28663,085,47235,451,0002,025,0002,428,928
7Mar 20, 2026 19:43101,45759,712,77834,496,0003,043,0002,342,912
8Mar 20, 2026 19:42101,46865,087,98636,529,0001,014,0002,326,528
9Mar 20, 2026 19:43101,60859,917,42736,579,0001,016,0002,342,912
10Mar 20, 2026 19:43101,75467,284,99936,632,0001,017,0002,330,624
11Mar 20, 2026 19:44102,18162,706,01935,818,0001,989,0002,342,912
12Mar 20, 2026 19:42102,22767,262,48436,829,000995,0002,326,528
13Mar 20, 2026 19:46102,22766,748,28534,838,0002,986,0002,342,912
14Mar 20, 2026 19:45102,31166,478,61335,863,0001,992,0002,551,808
15Mar 20, 2026 19:46102,31168,217,06335,863,0001,992,0002,342,912
16Mar 20, 2026 19:41102,36566,062,69235,882,0001,993,0002,342,912
17Mar 20, 2026 19:42102,41662,145,27235,900,0001,994,0002,330,624
18Mar 20, 2026 19:44102,48168,705,85935,923,0001,995,0002,428,928
19Mar 20, 2026 19:45102,57364,500,50135,955,0001,997,0002,342,912
20Mar 20, 2026 19:42102,64968,046,31934,982,0002,998,0002,342,912
21Mar 20, 2026 19:45102,94167,666,31836,084,0002,004,0002,326,528
22Mar 20, 2026 19:42103,08670,732,84436,135,0002,007,0002,433,024
23Mar 20, 2026 19:44103,21666,956,98036,180,0002,010,0002,342,912
24Mar 20, 2026 19:45104,01168,919,47737,472,0001,012,0002,433,024