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 20:44olliecrowolliecrowScore: 102,219Success
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 20:44100,93558,001,30534,318,0003,028,0002,330,624
2Mar 20, 2026 20:44101,53263,613,17536,552,0001,015,0002,342,912
3Mar 20, 2026 20:41101,62266,042,62236,584,0001,016,0002,420,736
4Mar 20, 2026 20:42101,63562,762,97235,573,0002,032,0002,342,912
5Mar 20, 2026 20:44101,78661,007,10036,644,0001,017,0002,437,120
6Mar 20, 2026 20:42101,84167,699,50934,707,0002,974,0002,342,912
7Mar 20, 2026 20:42102,20064,435,70135,824,0001,990,0002,342,912
8Mar 20, 2026 20:44102,21967,612,71835,831,0001,990,0002,342,912
9Mar 20, 2026 20:42102,23068,790,83435,835,0001,990,0002,342,912
10Mar 20, 2026 20:41102,27665,324,30236,847,000995,0002,428,928
11Mar 20, 2026 20:41102,32769,858,99634,872,0002,989,0002,342,912
12Mar 20, 2026 20:44102,69762,783,06234,999,0002,999,0002,342,912
13Mar 20, 2026 20:42103,02465,831,22935,110,0003,009,0002,342,912
14Mar 20, 2026 20:42103,06867,013,36835,125,0003,010,0002,342,912
15Mar 20, 2026 20:44103,24964,536,76336,192,0002,010,0002,547,712