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 30, 2026 04:53limanjun99limanjun99Score: 67,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2026 04:5662,47846,097,67222,112,0001,005,0002,412,544
2Mar 30, 2026 04:5662,50543,545,53321,116,0002,011,0002,404,352
3Mar 30, 2026 04:5662,58445,385,86221,143,0002,013,0002,281,472
4Mar 30, 2026 04:5662,74650,708,06722,207,0001,009,0002,281,472
5Mar 30, 2026 04:5662,80849,717,66221,219,0002,020,0002,281,472
6Mar 30, 2026 04:5662,97648,625,47922,288,0001,013,0002,281,472
7Mar 30, 2026 04:5663,02444,906,86221,292,0002,027,0002,281,472
8Mar 30, 2026 04:5663,53844,117,77222,487,0001,022,0002,482,176
9Mar 30, 2026 04:5664,44147,719,87922,850,000993,0002,400,256
10Mar 30, 2026 04:5367,25147,478,79223,888,000995,0002,281,472
11Mar 30, 2026 04:5367,27053,710,37023,895,000995,0002,281,472
12Mar 30, 2026 04:5367,31450,000,76024,906,00002,396,160
13Mar 30, 2026 04:5367,34939,785,43122,926,0001,993,0002,281,472
14Mar 30, 2026 04:5367,40347,715,72823,942,000997,0002,400,256
15Mar 30, 2026 04:5367,44147,451,77923,955,000998,0002,281,472
16Mar 30, 2026 04:5367,57350,760,29023,002,0002,000,0002,281,472
17Mar 30, 2026 04:5367,60050,542,87625,012,00002,404,352
18Mar 30, 2026 04:5367,78652,118,85824,078,0001,003,0002,281,472