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 19:30olliecrowolliecrowScore: 101,746Success
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 19:29100,37863,644,70634,129,0003,011,0002,334,720
2Mar 20, 2026 19:29100,64159,641,03435,225,0002,012,0002,428,928
3Mar 20, 2026 19:30100,67062,163,81634,228,0003,020,0002,433,024
4Mar 20, 2026 19:30100,67659,392,15933,223,0004,027,0002,330,624
5Mar 20, 2026 19:28101,37661,817,80136,496,0001,013,0002,293,760
6Mar 22, 2026 21:18101,41458,098,94735,495,0002,028,0002,437,120
7Mar 22, 2026 21:18101,68468,153,77035,590,0002,033,0002,445,312
8Mar 20, 2026 19:28101,74669,315,86836,629,0001,017,0002,342,912
9Mar 20, 2026 19:30102,27864,167,84334,856,0002,987,0002,428,928
10Mar 20, 2026 19:28102,28466,240,35635,854,0001,991,0002,424,832
11Mar 20, 2026 19:30102,28664,251,54635,855,0001,991,0002,334,720
12Mar 20, 2026 19:29102,32461,818,78735,868,0001,992,0002,433,024
13Mar 22, 2026 21:18102,82465,214,35535,042,0003,003,0002,347,008
14Mar 20, 2026 19:30102,96267,812,91936,091,0002,005,0002,342,912
15Mar 20, 2026 19:30103,19767,103,72236,174,0002,009,0002,441,216