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:11olliecrowolliecrowScore: 102,300Success
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:12100,70567,015,26834,240,0003,021,0002,342,912
2Mar 20, 2026 19:11101,26864,084,05434,431,0003,038,0002,547,712
3Mar 20, 2026 19:12101,46865,810,00736,529,0001,014,0002,330,624
4Mar 20, 2026 19:13101,51958,896,83236,547,0001,015,0002,342,912
5Mar 20, 2026 19:10102,23862,663,51234,842,0002,986,0002,441,216
6Mar 20, 2026 19:10102,26566,243,82834,851,0002,987,0002,342,912
7Mar 20, 2026 19:12102,26563,192,61935,847,0001,991,0002,301,952
8Mar 20, 2026 19:12102,30064,850,45834,863,0002,988,0002,326,528
9Mar 20, 2026 19:13102,30369,906,96234,864,0002,988,0002,330,624
10Mar 20, 2026 19:11102,30868,963,91635,862,0001,992,0002,551,808
11Mar 20, 2026 19:11102,31664,468,09135,865,0001,992,0002,326,528
12Mar 20, 2026 19:10102,50566,411,17234,933,0002,994,0002,342,912
13Mar 20, 2026 19:12103,16568,104,14536,162,0002,009,0002,342,912
14Mar 20, 2026 19:12103,19760,584,27236,174,0002,009,0002,437,120
15Mar 20, 2026 19:13124,22268,163,55142,965,0002,997,0002,322,432