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:34olliecrowolliecrowScore: 102,268Success
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:38101,34163,109,54036,483,0001,013,0002,334,720
2Mar 20, 2026 19:35101,44159,682,33636,519,0001,014,0002,326,528
3Mar 20, 2026 19:33101,59568,124,91535,559,0002,031,0002,428,928
4Mar 20, 2026 19:37101,61667,254,79835,566,0002,032,0002,433,024
5Mar 20, 2026 19:38101,65961,757,72135,581,0002,033,0002,424,832
6Mar 20, 2026 19:34101,69565,963,28435,594,0002,033,0002,437,120
7Mar 20, 2026 19:33101,70063,774,81135,595,0002,034,0002,424,832
8Mar 20, 2026 19:35102,22763,904,72535,834,0001,990,0002,342,912
9Mar 20, 2026 19:34102,25961,687,87335,845,0001,991,0002,342,912
10Mar 20, 2026 19:34102,26865,019,48936,844,000995,0002,342,912
11Mar 20, 2026 19:37102,27362,009,27834,854,0002,987,0002,342,912
12Mar 20, 2026 19:37102,29563,014,99935,857,0001,992,0002,342,912
13Mar 20, 2026 19:34102,58163,748,46434,959,0002,996,0002,330,624
14Mar 20, 2026 19:38102,68464,295,88334,994,0002,999,0002,433,024
15Mar 20, 2026 19:35103,08468,224,79335,130,0003,011,0002,445,312
16Mar 20, 2026 19:34103,27060,919,12736,199,0002,011,0002,428,928
17Mar 20, 2026 19:33103,54163,867,38236,294,0002,016,0002,433,024
18Mar 20, 2026 19:34103,59765,020,04035,305,0003,026,0002,441,216