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:58olliecrowolliecrowScore: 102,232Success
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:59100,78963,053,58234,269,0003,023,0002,428,928
2Mar 20, 2026 21:01101,14662,126,09234,390,0003,034,0002,330,624
3Mar 20, 2026 21:00101,65465,001,72635,579,0002,033,0002,342,912
4Mar 20, 2026 20:58101,65959,411,79335,581,0002,033,0002,330,624
5Mar 20, 2026 20:57101,70062,700,65236,612,0001,017,0002,342,912
6Mar 20, 2026 20:59101,83265,206,71636,660,0001,018,0002,342,912
7Mar 20, 2026 20:57101,88964,149,85335,662,0002,037,0002,342,912
8Mar 20, 2026 20:59101,90066,179,91536,684,0001,019,0002,433,024
9Mar 20, 2026 20:58101,92767,610,51036,694,0001,019,0002,342,912
10Mar 20, 2026 21:01102,15466,319,02736,776,0001,021,0002,342,912
11Mar 20, 2026 21:00102,23263,732,65635,836,0001,990,0002,547,712
12Mar 20, 2026 20:59102,28166,951,31035,853,0001,991,0002,342,912
13Mar 20, 2026 20:59102,30867,842,06234,866,0002,988,0002,519,040
14Mar 20, 2026 20:58102,31171,882,52935,863,0001,992,0002,424,832
15Mar 20, 2026 20:57102,37357,520,65735,885,0001,993,0002,424,832
16Mar 20, 2026 20:59102,40061,854,45534,897,0002,991,0002,342,912
17Mar 20, 2026 21:01102,43574,333,26034,909,0002,992,0002,342,912
18Mar 20, 2026 20:58103,23859,088,96435,183,0003,015,0002,510,848
19Mar 20, 2026 21:00104,66565,812,99536,688,0002,038,0002,326,528
20Mar 20, 2026 20:58107,03574,731,96636,477,0003,126,0002,351,104
21Mar 20, 2026 20:58108,40379,503,94838,053,0002,056,0002,347,008