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:14olliecrowolliecrowScore: 102,327Success
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:17100,68959,194,73934,235,0003,020,0002,412,544
2Mar 20, 2026 22:18100,85762,061,68334,292,0003,025,0002,400,256
3Mar 20, 2026 22:14100,91162,622,95034,310,0003,027,0002,420,736
4Mar 20, 2026 22:16101,01459,775,04835,355,0002,020,0002,424,832
5Mar 20, 2026 22:19101,12758,715,54834,384,0003,033,0002,408,448
6Mar 20, 2026 22:21101,13062,632,01435,396,0002,022,0002,408,448
7Mar 20, 2026 22:19101,20364,821,21036,433,0001,012,0002,416,640
8Mar 20, 2026 22:15101,27859,777,96535,448,0002,025,0002,342,912
9Mar 20, 2026 22:19101,47862,383,71236,533,0001,014,0002,416,640
10Mar 20, 2026 22:17101,81162,960,71536,652,0001,018,0002,412,544
11Mar 20, 2026 22:16102,23270,480,32236,831,000995,0002,342,912
12Mar 20, 2026 22:16102,24664,924,26135,840,0001,991,0002,420,736
13Mar 20, 2026 22:19102,27068,029,71335,849,0001,991,0002,342,912
14Mar 20, 2026 22:18102,32762,754,85835,869,0001,992,0002,342,912
15Mar 20, 2026 22:19102,36561,393,50734,885,0002,990,0002,416,640
16Mar 20, 2026 22:21102,45765,189,65035,914,0001,995,0002,342,912
17Mar 20, 2026 22:15102,50064,475,98734,931,0002,994,0002,342,912
18Mar 20, 2026 22:17102,55166,348,49035,947,0001,997,0002,330,624
19Mar 20, 2026 22:16102,64365,697,72035,980,0001,998,0002,412,544
20Mar 20, 2026 22:16102,83564,328,42935,046,0003,003,0002,535,424
21Mar 20, 2026 22:19102,90866,339,21835,070,0003,006,0002,342,912
22Mar 20, 2026 22:14102,93063,601,10936,080,0002,004,0002,400,256
23Mar 20, 2026 22:16103,24164,247,66935,184,0003,015,0002,334,720
24Mar 20, 2026 22:18103,30563,218,86035,206,0003,017,0002,424,832
25Mar 20, 2026 22:15103,42466,946,08536,253,0002,014,0002,420,736
26Mar 20, 2026 22:14104,40063,782,42236,595,0002,033,0002,428,928
27Mar 20, 2026 22:21107,40067,191,23137,701,0002,037,0002,396,160