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 05:35limanjun99limanjun99Score: 59,405Success
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 05:4656,89545,558,70120,049,0001,002,0002,281,472
2Mar 30, 2026 05:4657,05943,799,42820,107,0001,005,0002,392,064
3Mar 30, 2026 05:4657,06539,441,54919,104,0002,010,0002,281,472
4Mar 30, 2026 05:4657,07843,513,50419,108,0002,011,0002,273,280
5Mar 30, 2026 05:4657,10848,079,17220,124,0001,006,0002,510,848
6Mar 30, 2026 05:4657,12746,186,49320,131,0001,006,0002,281,472
7Mar 30, 2026 05:4657,13549,704,72020,134,0001,006,0002,392,064
8Mar 30, 2026 05:4657,25442,852,42520,176,0001,008,0002,281,472
9Mar 30, 2026 05:3559,34145,145,97321,956,00002,281,472
10Mar 30, 2026 05:3559,40543,224,70419,982,0001,998,0002,281,472
11Mar 30, 2026 05:3559,45149,089,67520,998,000999,0002,396,160
12Mar 30, 2026 05:3559,45947,650,61420,000,0002,000,0002,273,280
13Mar 30, 2026 05:3559,57049,228,71420,038,0002,003,0002,392,064
14Mar 30, 2026 05:3559,57850,406,80320,040,0002,004,0002,281,472
15Mar 30, 2026 05:3559,67054,669,45820,071,0002,007,0002,281,472
16Mar 30, 2026 05:4659,67348,650,05420,072,0002,007,0002,396,160
17Mar 30, 2026 05:3559,80342,419,36820,116,0002,011,0002,392,064
18Mar 30, 2026 05:3559,88157,105,73521,149,0001,007,0002,510,848