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 21, 2026 05:22olliecrowolliecrowScore: 102,281Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 05:22100,60363,747,92235,211,0002,012,0002,371,584
2Mar 21, 2026 05:24100,64158,092,05334,218,0003,019,0002,379,776
3Mar 21, 2026 05:19100,71659,472,24635,251,0002,014,0002,482,176
4Mar 21, 2026 05:24100,82460,903,12735,289,0002,016,0002,383,872
5Mar 21, 2026 05:19101,11465,581,75935,390,0002,022,0002,375,680
6Mar 21, 2026 05:23101,17058,950,02635,410,0002,023,0002,342,912
7Mar 21, 2026 05:20101,52459,117,75436,549,0001,015,0002,498,560
8Mar 21, 2026 05:19101,56561,560,06935,548,0002,031,0002,342,912
9Mar 21, 2026 05:20101,61962,880,04736,583,0001,016,0002,375,680
10Mar 21, 2026 05:24101,73064,825,91135,606,0002,034,0002,371,584
11Mar 21, 2026 05:23102,21665,937,93735,830,0001,990,0002,367,488
12Mar 21, 2026 05:19102,25965,298,92336,841,000995,0002,342,912
13Mar 21, 2026 05:21102,27065,432,00734,853,0002,987,0002,342,912
14Mar 21, 2026 05:23102,28168,211,07735,853,0001,991,0002,342,912
15Mar 21, 2026 05:19102,30567,775,92635,861,0001,992,0002,371,584
16Mar 21, 2026 05:24102,34966,228,82334,880,0002,989,0002,375,680
17Mar 21, 2026 05:21102,35764,433,82235,879,0001,993,0002,387,968
18Mar 21, 2026 05:23102,35966,482,76635,880,0001,993,0002,342,912
19Mar 21, 2026 05:23102,65766,445,99934,985,0002,998,0002,342,912
20Mar 21, 2026 05:23102,68464,543,38934,994,0002,999,0002,342,912
21Mar 21, 2026 05:20103,22260,592,10335,177,0003,015,0002,342,912
22Mar 21, 2026 05:24103,27063,949,06035,194,0003,016,0002,379,776
23Mar 21, 2026 05:19103,35462,922,85036,229,0002,012,0002,330,624
24Mar 21, 2026 05:24103,40360,678,32535,239,0003,020,0002,375,680
25Mar 21, 2026 05:22103,55161,658,19037,279,0001,035,0002,379,776
26Mar 21, 2026 05:21103,61163,777,25637,328,0001,008,0002,375,680
27Mar 21, 2026 05:22103,67359,465,88336,341,0002,018,0002,342,912