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 20:54olliecrowolliecrowScore: 102,308Success
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 20:54101,33561,032,19636,481,0001,013,0002,437,120
2Mar 20, 2026 20:56101,53260,877,24335,537,0002,030,0002,342,912
3Mar 20, 2026 20:53101,55171,492,68636,559,0001,015,0002,342,912
4Mar 20, 2026 20:52101,65970,312,19835,581,0002,033,0002,424,832
5Mar 20, 2026 20:54101,68467,892,15535,590,0002,033,0002,342,912
6Mar 20, 2026 20:56101,81664,558,17435,636,0002,036,0002,342,912
7Mar 20, 2026 20:56102,14666,872,61335,805,0001,989,0002,342,912
8Mar 20, 2026 20:53102,20362,717,42134,830,0002,985,0002,416,640
9Mar 20, 2026 20:54102,23269,402,47635,836,0001,990,0002,424,832
10Mar 20, 2026 20:55102,24162,187,23035,838,0001,991,0002,433,024
11Mar 20, 2026 20:56102,27367,758,55635,850,0001,991,0002,330,624
12Mar 20, 2026 20:55102,28162,673,73035,853,0001,991,0002,342,912
13Mar 20, 2026 20:53102,30566,162,30436,857,000996,0002,342,912
14Mar 20, 2026 20:56102,30866,231,65734,866,0002,988,0002,326,528
15Mar 20, 2026 20:55102,31465,535,31934,868,0002,988,0002,330,624
16Mar 20, 2026 20:54102,33061,781,43934,873,0002,989,0002,342,912
17Mar 20, 2026 20:56102,33267,410,26034,874,0002,989,0002,342,912
18Mar 20, 2026 20:52102,47661,219,96935,921,0001,995,0002,330,624
19Mar 20, 2026 20:55102,59265,527,58236,961,000998,0002,433,024
20Mar 20, 2026 20:53102,62468,816,69035,973,0001,998,0002,342,912
21Mar 20, 2026 20:55102,73862,117,14435,012,0003,001,0002,441,216
22Mar 20, 2026 20:55102,74171,585,53336,014,0002,000,0002,342,912
23Mar 20, 2026 20:54102,78166,053,49536,028,0002,001,0002,342,912
24Mar 20, 2026 20:53103,42257,091,65336,252,0002,014,0002,433,024
25Mar 20, 2026 20:54103,64657,818,96435,322,0003,027,0002,420,736
26Mar 20, 2026 20:53104,62766,357,99537,694,0001,018,0002,342,912
27Mar 20, 2026 20:52107,97881,319,76237,955,0001,997,0002,428,928