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:25olliecrowolliecrowScore: 102,300Success
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:26101,05463,646,88534,359,0003,031,0002,535,424
2Mar 20, 2026 19:27101,38160,035,45435,484,0002,027,0002,437,120
3Mar 20, 2026 19:27101,38459,510,76135,485,0002,027,0002,342,912
4Mar 20, 2026 19:25101,47861,244,89535,518,0002,029,0002,433,024
5Mar 20, 2026 19:25101,58463,894,74835,555,0002,031,0002,437,120
6Mar 20, 2026 19:27101,72765,760,54736,622,0001,017,0002,424,832
7Mar 20, 2026 19:25101,81965,096,79235,637,0002,036,0002,342,912
8Mar 20, 2026 19:27102,30067,872,07134,863,0002,988,0002,531,328
9Mar 20, 2026 19:26102,31666,085,10935,865,0001,992,0002,428,928
10Mar 20, 2026 19:27102,52463,534,49135,938,0001,996,0002,342,912
11Mar 20, 2026 19:25102,68164,623,93634,993,0002,999,0002,441,216
12Mar 20, 2026 19:27102,74362,373,35136,015,0002,000,0002,433,024
13Mar 20, 2026 19:25102,75763,703,73235,019,0003,001,0002,551,808
14Mar 20, 2026 19:26103,13567,301,43035,148,0003,012,0002,416,640
15Mar 20, 2026 19:25104,01961,408,04636,462,0002,025,0002,342,912