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:17olliecrowolliecrowScore: 102,278Success
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:15100,67059,603,02234,228,0003,020,0002,342,912
2Mar 20, 2026 21:17100,68960,507,62935,242,0002,013,0002,326,528
3Mar 20, 2026 21:15100,72759,886,90834,248,0003,021,0002,334,720
4Mar 20, 2026 21:17100,98662,211,50835,346,0002,019,0002,433,024
5Mar 20, 2026 21:18101,00558,636,50934,342,0003,030,0002,330,624
6Mar 20, 2026 21:20101,18959,601,64735,417,0002,023,0002,428,928
7Mar 20, 2026 21:17101,50359,292,28535,526,0002,030,0002,424,832
8Mar 20, 2026 21:16101,60562,762,28635,562,0002,032,0002,416,640
9Mar 20, 2026 21:15101,74661,211,37636,629,0001,017,0002,510,848
10Mar 20, 2026 21:19101,85469,830,20435,649,0002,037,0002,424,832
11Mar 20, 2026 21:18102,18164,383,46336,813,000994,0002,342,912
12Mar 20, 2026 21:15102,21970,369,33835,831,0001,990,0002,342,912
13Mar 20, 2026 21:15102,24164,127,69136,834,000995,0002,342,912
14Mar 20, 2026 21:16102,27863,723,39035,852,0001,991,0002,428,928
15Mar 20, 2026 21:19102,27868,986,24636,848,000995,0002,420,736
16Mar 20, 2026 21:15102,30065,607,55334,863,0002,988,0002,342,912
17Mar 20, 2026 21:20102,31665,562,69435,865,0001,992,0002,342,912
18Mar 20, 2026 21:17102,32266,842,62835,867,0001,992,0002,342,912
19Mar 20, 2026 21:17102,44163,218,51135,909,0001,994,0002,330,624
20Mar 20, 2026 21:15102,44664,664,57535,910,0001,995,0002,342,912
21Mar 20, 2026 21:17102,47662,523,47935,921,0001,995,0002,433,024
22Mar 20, 2026 21:20102,65469,550,58835,983,0001,999,0002,424,832
23Mar 20, 2026 21:16102,79767,463,35035,033,0003,002,0002,342,912
24Mar 20, 2026 21:15103,23860,863,26935,183,0003,015,0002,420,736
25Mar 20, 2026 21:15103,35168,249,84536,228,0002,012,0002,416,640
26Mar 20, 2026 21:18103,62765,720,49136,324,0002,018,0002,342,912
27Mar 20, 2026 21:19105,05768,442,95936,878,0001,993,0002,433,024