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 21:51olliecrowolliecrowScore: 102,249Success
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 21:50100,49562,534,97434,169,0003,014,0002,420,736
2Mar 20, 2026 21:44100,65758,664,76535,230,0002,013,0002,420,736
3Mar 20, 2026 21:46100,79560,258,01434,271,0003,023,0002,342,912
4Mar 20, 2026 21:51101,00359,605,93534,341,0003,030,0002,404,352
5Mar 20, 2026 21:47101,02760,907,08335,360,0002,020,0002,543,616
6Mar 20, 2026 21:48101,48460,346,06136,535,0001,014,0002,342,912
7Mar 20, 2026 21:47101,50063,681,62735,525,0002,030,0002,412,544
8Mar 20, 2026 21:44101,51164,227,21036,544,0001,015,0002,342,912
9Mar 20, 2026 21:43101,54369,425,57736,556,0001,015,0002,408,448
10Mar 20, 2026 21:44101,55158,295,07135,543,0002,031,0002,326,528
11Mar 20, 2026 21:48101,61163,918,82135,564,0002,032,0002,330,624
12Mar 20, 2026 21:43102,03565,587,32436,733,0001,020,0002,412,544
13Mar 20, 2026 21:48102,13062,513,21435,800,0001,988,0002,539,520
14Mar 20, 2026 21:43102,16263,734,08736,806,000994,0002,408,448
15Mar 20, 2026 21:50102,23565,710,43636,832,000995,0002,535,424
16Mar 20, 2026 21:44102,24963,825,43734,846,0002,986,0002,342,912
17Mar 20, 2026 21:48102,26869,280,60236,844,000995,0002,539,520
18Mar 20, 2026 21:46102,27863,941,59034,856,0002,987,0002,416,640
19Mar 20, 2026 21:44102,28167,445,29936,849,000995,0002,416,640
20Mar 20, 2026 21:44102,31662,428,41335,865,0001,992,0002,404,352
21Mar 20, 2026 21:48102,33069,792,50935,870,0001,992,0002,342,912
22Mar 20, 2026 21:43102,33065,569,36434,873,0002,989,0002,412,544
23Mar 20, 2026 21:48102,33569,897,03835,872,0001,992,0002,408,448
24Mar 20, 2026 21:43102,45464,804,65535,913,0001,995,0002,412,544
25Mar 20, 2026 21:51102,49264,438,40434,929,0002,993,0002,334,720
26Mar 20, 2026 21:50102,54160,475,47235,944,0001,996,0002,342,912
27Mar 20, 2026 21:47102,59265,849,53735,962,0001,997,0002,342,912
28Mar 20, 2026 21:51102,62464,390,12334,974,0002,997,0002,408,448
29Mar 20, 2026 21:46103,39763,976,54336,244,0002,013,0002,342,912
30Mar 20, 2026 21:43104,41962,975,18438,635,00002,342,912