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:53olliecrowolliecrowScore: 102,297Success
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:57100,33061,951,45136,119,0001,003,0002,342,912
2Mar 20, 2026 19:55100,48163,842,31834,164,0003,014,0002,326,528
3Mar 20, 2026 19:52100,61658,619,27535,216,0002,012,0002,342,912
4Mar 20, 2026 19:49100,86569,874,06634,294,0003,026,0002,433,024
5Mar 20, 2026 19:54100,88658,299,83834,302,0003,026,0002,330,624
6Mar 20, 2026 19:56100,96563,493,90835,338,0002,019,0002,437,120
7Mar 20, 2026 19:52101,40565,836,43836,506,0001,014,0002,547,712
8Mar 20, 2026 19:56101,44959,365,57435,507,0002,029,0002,342,912
9Mar 20, 2026 19:49101,49563,669,99235,524,0002,029,0002,420,736
10Mar 20, 2026 19:55101,66562,456,56235,527,0002,089,0002,342,912
11Mar 20, 2026 19:52101,80869,117,47436,651,0001,018,0002,441,216
12Mar 20, 2026 19:51101,86569,363,96436,672,0001,018,0002,342,912
13Mar 20, 2026 19:57102,25763,934,28535,844,0001,991,0002,428,928
14Mar 20, 2026 19:52102,29763,058,45234,862,0002,988,0002,433,024
15Mar 20, 2026 19:53102,31662,697,60936,861,000996,0002,437,120
16Mar 20, 2026 19:51102,32767,652,71534,872,0002,989,0002,433,024
17Mar 20, 2026 19:54102,33268,092,24835,871,0001,992,0002,342,912
18Mar 20, 2026 19:49102,35965,501,13935,880,0001,993,0002,330,624
19Mar 20, 2026 19:53102,41166,748,98835,898,0001,994,0002,342,912
20Mar 20, 2026 19:52102,41465,998,34035,899,0001,994,0002,433,024
21Mar 20, 2026 19:55102,57362,356,36935,955,0001,997,0002,437,120
22Mar 20, 2026 19:54102,60558,390,91235,966,0001,998,0002,428,928
23Mar 20, 2026 19:56102,62266,966,47034,973,0002,997,0002,428,928
24Mar 20, 2026 19:57102,84666,083,45836,051,0002,002,0002,342,912
25Mar 20, 2026 19:52102,93060,210,56735,078,0003,006,0002,433,024
26Mar 20, 2026 19:53102,99267,601,83036,102,0002,005,0002,342,912
27Mar 20, 2026 19:51103,21164,417,22636,179,0002,009,0002,338,816