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:00olliecrowolliecrowScore: 102,203Success
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:01100,61959,729,99235,217,0002,012,0002,433,024
2Mar 20, 2026 19:01100,68161,526,27834,232,0003,020,0002,342,912
3Mar 20, 2026 19:00101,16861,886,76634,397,0003,035,0002,342,912
4Mar 20, 2026 19:00101,33261,920,55835,467,0002,026,0002,433,024
5Mar 20, 2026 18:59101,49267,943,00436,538,0001,014,0002,334,720
6Mar 20, 2026 18:58101,54159,740,14736,555,0001,015,0002,342,912
7Mar 20, 2026 19:00101,89566,830,64235,664,0002,037,0002,428,928
8Mar 20, 2026 18:59102,20363,632,07835,825,0001,990,0002,445,312
9Mar 20, 2026 18:58102,25769,160,04334,848,0002,987,0002,342,912
10Mar 20, 2026 19:00102,33263,743,83735,871,0001,992,0002,342,912
11Mar 20, 2026 19:00102,38962,704,61534,894,0002,990,0002,445,312
12Mar 20, 2026 18:58102,48161,419,33634,925,0002,993,0002,416,640
13Mar 20, 2026 19:01102,93862,891,10835,081,0003,006,0002,301,952
14Mar 20, 2026 18:59103,03270,180,62036,116,0002,006,0002,342,912
15Mar 20, 2026 19:00103,06265,338,78835,123,0003,010,0002,342,912