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:48olliecrowolliecrowScore: 102,357Success
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:46101,20057,265,88435,420,0002,024,0002,433,024
2Mar 20, 2026 20:50101,30562,334,41834,444,0003,039,0002,342,912
3Mar 20, 2026 20:50101,37858,625,68935,483,0002,027,0002,424,832
4Mar 20, 2026 20:47101,50062,414,00536,540,0001,015,0002,342,912
5Mar 20, 2026 20:50101,61466,501,24035,565,0002,032,0002,330,624
6Mar 20, 2026 20:48101,64963,470,95936,594,0001,016,0002,342,912
7Mar 20, 2026 20:50102,23568,129,29435,837,0001,990,0002,342,912
8Mar 20, 2026 20:46102,35771,494,60035,879,0001,993,0002,424,832
9Mar 20, 2026 20:50102,49764,379,11635,928,0001,996,0002,424,832
10Mar 20, 2026 20:47102,51666,884,25635,935,0001,996,0002,342,912
11Mar 20, 2026 20:48102,54369,069,62935,945,0001,996,0002,342,912
12Mar 20, 2026 20:48102,99764,639,16935,101,0003,008,0002,342,912
13Mar 20, 2026 20:50103,04667,617,03235,117,0003,010,0002,342,912
14Mar 20, 2026 20:47103,17066,007,97936,164,0002,009,0002,437,120
15Mar 20, 2026 20:46103,29763,047,60836,209,0002,011,0002,437,120