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 18:40olliecrowolliecrowScore: 102,354Success
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 18:38100,70062,024,51935,245,0002,014,0002,441,216
2Mar 20, 2026 18:41100,72455,601,63734,247,0003,021,0002,437,120
3Mar 20, 2026 18:41101,60562,241,87036,578,0001,016,0002,445,312
4Mar 20, 2026 18:38101,60862,721,45635,563,0002,032,0002,433,024
5Mar 20, 2026 18:39101,63066,646,54635,571,0002,032,0002,342,912
6Mar 20, 2026 18:41101,80865,983,64835,633,0002,036,0002,342,912
7Mar 20, 2026 18:40102,30864,747,17834,866,0002,988,0002,342,912
8Mar 20, 2026 18:39102,35461,564,13335,824,0002,047,0002,342,912
9Mar 20, 2026 18:40102,35965,178,75234,883,0002,990,0002,445,312
10Mar 20, 2026 18:40102,40362,342,47334,898,0002,991,0002,326,528
11Mar 20, 2026 18:39102,60061,084,76034,965,0002,997,0002,433,024
12Mar 20, 2026 18:40102,61665,477,56935,970,0001,998,0002,433,024
13Mar 20, 2026 18:40103,23861,069,98036,188,0002,010,0002,330,624
14Mar 20, 2026 18:38103,57058,542,59336,305,0002,016,0002,531,328
15Mar 20, 2026 18:40104,18159,830,43236,519,0002,028,0002,441,216