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 21:41olliecrowolliecrowScore: 102,284Success
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 21:37100,64364,901,99535,226,0002,012,0002,535,424
2Mar 20, 2026 21:39100,85764,900,81534,292,0003,025,0002,400,256
3Mar 20, 2026 21:39101,03860,450,18335,364,0002,020,0002,326,528
4Mar 20, 2026 21:39101,26257,757,09336,455,0001,012,0002,342,912
5Mar 20, 2026 21:37101,31960,082,07234,449,0003,039,0002,408,448
6Mar 20, 2026 21:42101,62469,239,04535,569,0002,032,0002,342,912
7Mar 20, 2026 21:40101,64363,255,73436,592,0001,016,0002,334,720
8Mar 20, 2026 21:37101,71470,783,95036,617,0001,017,0002,539,520
9Mar 20, 2026 21:42101,75967,156,09435,616,0002,035,0002,412,544
10Mar 20, 2026 21:41102,23866,923,07334,842,0002,986,0002,342,912
11Mar 20, 2026 21:38102,24964,228,55934,846,0002,986,0002,420,736
12Mar 20, 2026 21:37102,25960,825,34034,849,0002,987,0002,412,544
13Mar 20, 2026 21:40102,27064,553,10935,849,0001,991,0002,330,624
14Mar 20, 2026 21:42102,28465,696,34534,858,0002,987,0002,408,448
15Mar 20, 2026 21:38102,34662,331,20534,879,0002,989,0002,416,640
16Mar 20, 2026 21:39102,40560,351,76435,896,0001,994,0002,539,520
17Mar 20, 2026 21:42102,54963,182,29834,948,0002,995,0002,416,640
18Mar 20, 2026 21:41102,62261,581,71435,972,0001,998,0002,416,640
19Mar 20, 2026 21:37102,67062,955,20934,989,0002,999,0002,416,640
20Mar 20, 2026 21:38102,67866,892,63235,992,0001,999,0002,342,912
21Mar 20, 2026 21:37102,71163,005,96136,003,0002,000,0002,326,528
22Mar 20, 2026 21:41102,88970,182,85035,064,0003,005,0002,412,544
23Mar 20, 2026 21:42102,99765,294,85235,101,0003,008,0002,424,832
24Mar 20, 2026 21:39103,01464,194,48035,106,0003,009,0002,342,912
25Mar 20, 2026 21:40103,31962,305,95835,210,0003,018,0002,342,912
26Mar 20, 2026 21:39104,10070,357,03737,504,0001,013,0002,514,944
27Mar 20, 2026 21:42107,11172,412,86836,659,0002,972,0002,412,544