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:10olliecrowolliecrowScore: 102,486Success
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:11100,73259,825,58734,249,0003,022,0002,433,024
2Mar 20, 2026 21:11101,03860,445,26035,364,0002,020,0002,342,912
3Mar 20, 2026 21:10101,21162,221,73936,436,0001,012,0002,428,928
4Mar 20, 2026 21:09101,30562,780,38635,457,0002,026,0002,428,928
5Mar 20, 2026 21:09101,45959,766,65235,511,0002,029,0002,342,912
6Mar 20, 2026 21:13101,78162,899,92736,642,0001,017,0002,428,928
7Mar 20, 2026 21:11102,10063,731,79134,795,0002,982,0002,342,912
8Mar 20, 2026 21:08102,26266,061,94835,846,0001,991,0002,334,720
9Mar 20, 2026 21:13102,27366,911,33835,850,0001,991,0002,424,832
10Mar 20, 2026 21:09102,34366,857,04034,878,0002,989,0002,342,912
11Mar 20, 2026 21:11102,41464,758,18435,899,0001,994,0002,342,912
12Mar 20, 2026 21:10102,41963,291,93536,898,000997,0002,338,816
13Mar 20, 2026 21:11102,42265,750,17835,902,0001,994,0002,424,832
14Mar 20, 2026 21:09102,48668,326,99935,925,0001,995,0002,424,832
15Mar 20, 2026 21:11102,56565,001,64435,952,0001,997,0002,428,928
16Mar 20, 2026 21:13102,57367,552,90534,956,0002,996,0002,342,912
17Mar 20, 2026 21:11102,58465,589,84534,960,0002,996,0002,428,928
18Mar 20, 2026 21:09102,70868,495,02935,002,0003,000,0002,437,120
19Mar 20, 2026 21:11102,78964,303,87535,030,0003,002,0002,326,528
20Mar 20, 2026 21:11102,84963,123,44735,050,0003,004,0002,330,624
21Mar 20, 2026 21:09102,86565,894,06135,056,0003,004,0002,342,912
22Mar 20, 2026 21:10102,88666,577,99136,065,0002,003,0002,342,912
23Mar 20, 2026 21:08102,96864,038,38536,093,0002,005,0002,347,008
24Mar 20, 2026 21:10103,44160,357,23836,259,0002,014,0002,330,624
25Mar 20, 2026 21:10103,89260,134,66535,406,0003,034,0002,326,528
26Mar 20, 2026 21:10103,94168,260,84136,434,0002,024,0002,338,816
27Mar 20, 2026 21:08105,97367,816,01635,189,0004,021,0002,342,912