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 12, 2026 03:45olliecrowolliecrowScore: 60,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 12, 2026 02:4860,64343,285,34421,419,0001,019,0002,273,280
2Mar 12, 2026 03:4560,67650,629,53422,450,00002,273,280
3Mar 12, 2026 03:2160,68142,660,46921,432,0001,020,0002,273,280
4Mar 12, 2026 03:4560,75437,285,80721,458,0001,021,0002,392,064
5Mar 12, 2026 03:1160,76247,210,05921,461,0001,021,0002,273,280
6Mar 12, 2026 03:1160,78148,691,65121,467,0001,022,0002,273,280
7Mar 12, 2026 03:1460,78942,548,21522,492,00002,273,280
8Mar 12, 2026 02:5360,83042,631,25821,484,0001,023,0002,519,040
9Mar 12, 2026 02:4860,88149,149,44422,526,00002,273,280
10Mar 12, 2026 03:2160,89544,531,89022,531,00002,273,280
11Mar 12, 2026 03:2160,90347,706,29821,510,0001,024,0002,273,280
12Mar 12, 2026 02:5360,90848,105,28522,536,00002,273,280
13Mar 12, 2026 03:4560,94148,375,42021,524,0001,024,0002,273,280
14Mar 12, 2026 03:4560,98644,921,25521,540,0001,025,0002,396,160
15Mar 12, 2026 03:1461,01144,108,99921,548,0001,026,0002,396,160
16Mar 12, 2026 03:1461,01642,606,04522,576,00002,408,448
17Mar 12, 2026 03:4561,05748,193,70522,591,00002,400,256
18Mar 12, 2026 03:4561,05749,172,07722,591,00002,519,040
19Mar 12, 2026 03:4561,08649,719,09721,575,0001,027,0002,392,064
20Mar 12, 2026 03:4561,09752,716,80521,579,0001,027,0002,396,160
21Mar 12, 2026 03:4561,10848,342,52322,610,00002,396,160
22Mar 12, 2026 02:5361,13249,606,54021,591,0001,028,0002,400,256
23Mar 12, 2026 03:1161,15948,483,32921,601,0001,028,0002,392,064
24Mar 12, 2026 02:4861,23249,160,20922,656,00002,273,280
25Mar 12, 2026 03:4562,77053,832,17621,206,0002,019,0002,404,352
26Mar 12, 2026 03:4563,02251,257,77122,305,0001,013,0002,273,280
27Mar 12, 2026 03:4567,55461,495,09522,996,0001,999,0002,269,184