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:25olliecrowolliecrowScore: 101,824Success
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:25100,45164,630,90535,158,0002,009,0002,342,912
2Mar 20, 2026 20:27100,51957,227,87835,182,0002,010,0002,330,624
3Mar 20, 2026 20:23100,71161,683,55334,242,0003,021,0002,424,832
4Mar 20, 2026 20:24100,90565,383,67634,308,0003,027,0002,428,928
5Mar 20, 2026 20:22101,01463,925,54435,355,0002,020,0002,342,912
6Mar 20, 2026 20:22101,12462,271,53734,383,0003,033,0002,342,912
7Mar 20, 2026 20:27101,14359,943,84834,389,0003,034,0002,539,520
8Mar 20, 2026 20:25101,54965,406,00535,542,0002,031,0002,342,912
9Mar 20, 2026 20:24101,68966,252,29536,609,0001,016,0002,420,736
10Mar 20, 2026 20:27101,70068,047,84536,612,0001,017,0002,342,912
11Mar 20, 2026 20:23101,77068,276,94836,638,0001,017,0002,342,912
12Mar 20, 2026 20:25101,78968,775,26735,627,0002,035,0002,342,912
13Mar 20, 2026 20:22101,81671,390,95236,654,0001,018,0002,334,720
14Mar 20, 2026 20:23101,82464,821,73235,639,0002,036,0002,412,544
15Mar 20, 2026 20:23101,84162,302,87035,645,0002,036,0002,428,928
16Mar 20, 2026 20:27102,24663,675,33435,840,0001,991,0002,330,624
17Mar 20, 2026 20:22102,25464,313,70334,848,0002,986,0002,424,832
18Mar 20, 2026 20:22102,31164,250,31635,863,0001,992,0002,342,912
19Mar 20, 2026 20:25102,33066,791,69334,873,0002,989,0002,330,624
20Mar 20, 2026 20:23102,34666,049,07334,879,0002,989,0002,342,912
21Mar 20, 2026 20:25102,45762,125,58735,914,0001,995,0002,342,912
22Mar 20, 2026 20:25102,54968,714,80535,946,0001,997,0002,342,912
23Mar 20, 2026 20:24102,72266,849,34036,007,0002,000,0002,416,640
24Mar 20, 2026 20:27103,00068,897,13136,105,0002,005,0002,412,544
25Mar 20, 2026 20:27103,27860,944,11935,197,0003,016,0002,498,560
26Mar 20, 2026 20:23103,71467,234,01635,345,0003,029,0002,342,912
27Mar 20, 2026 20:22109,01465,941,13338,368,0001,967,0002,420,736