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 22:51olliecrowolliecrowScore: 102,303Success
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 22:48100,83857,270,43135,294,0002,016,0002,400,256
2Mar 20, 2026 22:46100,99559,033,72835,349,0002,019,0002,404,352
3Mar 20, 2026 22:50101,14957,321,54235,402,0002,023,0002,408,448
4Mar 20, 2026 22:49101,29560,233,02734,441,0003,038,0002,342,912
5Mar 20, 2026 22:48101,30359,008,13936,469,0001,013,0002,539,520
6Mar 20, 2026 22:48101,61461,419,18736,581,0001,016,0002,342,912
7Mar 20, 2026 22:51101,70366,752,27235,596,0002,034,0002,412,544
8Mar 20, 2026 22:47101,72466,728,76235,604,0002,034,0002,342,912
9Mar 20, 2026 22:49101,90059,049,66236,684,0001,019,0002,342,912
10Mar 20, 2026 22:50102,13067,202,60534,805,0002,983,0002,330,624
11Mar 20, 2026 22:50102,23266,353,06134,840,0002,986,0002,342,912
12Mar 20, 2026 22:46102,28667,717,85535,855,0001,991,0002,338,816
13Mar 20, 2026 22:48102,29568,602,32835,857,0001,992,0002,416,640
14Mar 20, 2026 22:52102,30367,368,03635,860,0001,992,0002,342,912
15Mar 20, 2026 22:47102,33865,739,61435,873,0001,992,0002,404,352
16Mar 20, 2026 22:50102,57063,301,13735,954,0001,997,0002,330,624
17Mar 20, 2026 22:50102,97867,834,85135,094,0003,008,0002,342,912
18Mar 20, 2026 22:50103,07862,907,20335,128,0003,011,0002,420,736
19Mar 20, 2026 22:52103,09566,802,41136,138,0002,007,0002,408,448
20Mar 20, 2026 22:48103,15468,338,17236,159,0002,008,0002,330,624
21Mar 20, 2026 22:46103,38660,938,86536,240,0002,013,0002,330,624
22Mar 20, 2026 22:51103,91666,818,11035,414,0003,035,0002,412,544
23Mar 20, 2026 22:51104,56562,801,53736,653,0002,036,0002,342,912
24Mar 20, 2026 22:47104,57664,604,24237,675,0001,018,0002,342,912
25Mar 20, 2026 22:52105,34667,039,09535,980,0002,998,0002,342,912
26Mar 20, 2026 22:49108,65960,893,89438,194,0002,010,0002,347,008
27Mar 20, 2026 22:48108,93281,972,98236,373,0003,932,0002,347,008