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:41olliecrowolliecrowScore: 101,895Success
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:40100,68663,782,25735,241,0002,013,0002,424,832
2Mar 20, 2026 22:38100,89259,772,62535,313,0002,017,0002,416,640
3Mar 20, 2026 22:44101,16262,609,49436,419,0001,011,0002,412,544
4Mar 20, 2026 22:43101,18659,433,23235,416,0002,023,0002,342,912
5Mar 20, 2026 22:44101,18958,567,57034,405,0003,035,0002,342,912
6Mar 20, 2026 22:44101,22259,643,98934,416,0003,036,0002,342,912
7Mar 20, 2026 22:41101,27062,453,75235,445,0002,025,0002,342,912
8Mar 20, 2026 22:43101,33258,034,17535,467,0002,026,0002,326,528
9Mar 20, 2026 22:45101,39560,261,53134,475,0003,041,0002,420,736
10Mar 20, 2026 22:45101,40063,209,60136,504,0001,014,0002,342,912
11Mar 20, 2026 22:40101,43268,143,01435,502,0002,028,0002,416,640
12Mar 20, 2026 22:38101,60558,637,58535,562,0002,032,0002,408,448
13Mar 20, 2026 22:39101,60564,956,08336,578,0001,016,0002,420,736
14Mar 20, 2026 22:44101,68969,895,05836,609,0001,016,0002,342,912
15Mar 20, 2026 22:43101,70063,061,88635,595,0002,034,0002,342,912
16Mar 20, 2026 22:39101,89569,911,92236,683,0001,018,0002,424,832
17Mar 20, 2026 22:44102,20864,663,33736,795,0001,022,0002,334,720
18Mar 20, 2026 22:39102,22260,394,00035,832,0001,990,0002,543,616
19Mar 20, 2026 22:43102,30067,364,38934,863,0002,988,0002,342,912
20Mar 20, 2026 22:45102,31168,060,30734,867,0002,988,0002,416,640
21Mar 20, 2026 22:45102,34963,889,61434,880,0002,989,0002,416,640
22Mar 20, 2026 22:44102,38167,897,35034,891,0002,990,0002,416,640
23Mar 20, 2026 22:41102,41461,980,31234,902,0002,991,0002,342,912
24Mar 20, 2026 22:41102,42263,996,12934,905,0002,991,0002,424,832
25Mar 20, 2026 22:38102,51161,437,20534,935,0002,994,0002,424,832
26Mar 20, 2026 22:45102,73063,388,35336,010,0002,000,0002,342,912
27Mar 20, 2026 22:40102,94662,179,55335,083,0003,007,0002,342,912
28Mar 20, 2026 22:45103,07364,293,04436,130,0002,007,0002,408,448
29Mar 20, 2026 22:43103,23863,883,40536,188,0002,010,0002,342,912
30Mar 20, 2026 22:43103,33861,533,06336,223,0002,012,0002,342,912