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:08olliecrowolliecrowScore: 102,322Success
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:06100,73863,554,25634,251,0003,022,0002,342,912
2Mar 20, 2026 20:07100,91160,336,70435,319,0002,018,0002,342,912
3Mar 20, 2026 20:08101,21167,980,19734,412,0003,036,0002,330,624
4Mar 20, 2026 20:07101,22458,064,78034,417,0003,036,0002,342,912
5Mar 20, 2026 20:09101,23859,943,93435,434,0002,024,0002,433,024
6Mar 20, 2026 20:09101,59568,809,68835,559,0002,031,0002,342,912
7Mar 20, 2026 20:06101,67862,575,90836,605,0001,016,0002,428,928
8Mar 20, 2026 20:07102,28466,016,37835,854,0001,991,0002,342,912
9Mar 20, 2026 20:06102,30563,054,86934,865,0002,988,0002,342,912
10Mar 20, 2026 20:08102,30562,729,51834,865,0002,988,0002,433,024
11Mar 20, 2026 20:08102,32263,281,23635,867,0001,992,0002,342,912
12Mar 20, 2026 20:06102,34365,197,91034,878,0002,989,0002,428,928
13Mar 20, 2026 20:06102,37063,954,57035,884,0001,993,0002,342,912
14Mar 20, 2026 20:07102,86267,846,50936,056,0002,003,0002,433,024
15Mar 20, 2026 20:07102,90068,132,14836,070,0002,003,0002,347,008
16Mar 20, 2026 20:08102,90066,781,16035,068,0003,005,0002,424,832
17Mar 20, 2026 20:08103,09264,816,60635,133,0003,011,0002,441,216
18Mar 20, 2026 20:06103,23561,661,89636,187,0002,010,0002,424,832
19Mar 20, 2026 20:09103,91963,642,23435,415,0003,035,0002,342,912
20Mar 20, 2026 20:07104,34964,975,31337,593,0001,016,0002,433,024
21Mar 20, 2026 20:08104,52264,712,91936,638,0002,035,0002,519,040