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:13olliecrowolliecrowScore: 102,278Success
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:13100,30063,976,16134,102,0003,009,0002,342,912
2Mar 20, 2026 20:13100,72261,706,02234,246,0003,021,0002,420,736
3Mar 20, 2026 20:11101,16857,557,10934,397,0003,035,0002,424,832
4Mar 20, 2026 20:14101,56564,815,86635,548,0002,031,0002,342,912
5Mar 20, 2026 20:13101,68465,642,08335,590,0002,033,0002,342,912
6Mar 20, 2026 20:15101,78163,923,11235,624,0002,035,0002,416,640
7Mar 20, 2026 20:14102,15763,058,95335,809,0001,989,0002,547,712
8Mar 20, 2026 20:16102,17865,587,42035,817,0001,989,0002,326,528
9Mar 20, 2026 20:12102,18967,902,11035,820,0001,990,0002,330,624
10Mar 20, 2026 20:12102,21967,607,38035,831,0001,990,0002,342,912
11Mar 20, 2026 20:12102,23058,670,42236,830,000995,0002,330,624
12Mar 20, 2026 20:12102,26565,785,55235,847,0001,991,0002,424,832
13Mar 20, 2026 20:12102,27871,740,53034,856,0002,987,0002,416,640
14Mar 20, 2026 20:15102,30065,256,54735,859,0001,992,0002,342,912
15Mar 20, 2026 20:14102,36563,302,55334,885,0002,990,0002,404,352
16Mar 20, 2026 20:16102,50561,736,89134,933,0002,994,0002,433,024
17Mar 20, 2026 20:13102,58463,056,24935,959,0001,997,0002,433,024
18Mar 20, 2026 20:11102,69562,173,51734,998,0002,999,0002,342,912
19Mar 20, 2026 20:12102,87066,544,70236,059,0002,003,0002,433,024
20Mar 20, 2026 20:13102,91671,284,75936,075,0002,004,0002,342,912
21Mar 20, 2026 20:11102,92766,997,54235,077,0003,006,0002,342,912
22Mar 20, 2026 20:15103,17659,654,37335,162,0003,013,0002,342,912
23Mar 20, 2026 20:13105,09564,329,79636,891,0001,994,0002,543,616
24Mar 20, 2026 20:16108,05776,190,02736,983,0002,998,0002,433,024