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:30olliecrowolliecrowScore: 102,251Success
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:31100,60358,176,70834,205,0003,018,0002,342,912
2Mar 20, 2026 20:32100,63560,126,48734,216,0003,019,0002,342,912
3Mar 20, 2026 20:31100,65970,056,80935,231,0002,013,0002,412,544
4Mar 20, 2026 20:35101,02768,056,30134,350,0003,030,0002,342,912
5Mar 20, 2026 20:35101,28658,018,06635,451,0002,025,0002,408,448
6Mar 20, 2026 20:29101,49259,388,50135,523,0002,029,0002,420,736
7Mar 20, 2026 20:33101,58662,140,35835,556,0002,031,0002,314,240
8Mar 20, 2026 20:29101,58965,327,78735,557,0002,031,0002,416,640
9Mar 20, 2026 20:32101,68966,402,02236,609,0001,016,0002,330,624
10Mar 20, 2026 20:29101,70366,435,52336,613,0001,017,0002,342,912
11Mar 20, 2026 20:35101,70868,451,52935,598,0002,034,0002,416,640
12Mar 20, 2026 20:29101,83263,802,14935,642,0002,036,0002,342,912
13Mar 20, 2026 20:30101,86863,671,37836,673,0001,018,0002,330,624
14Mar 20, 2026 20:29102,21665,478,60535,830,0001,990,0002,342,912
15Mar 20, 2026 20:33102,24366,122,64835,839,0001,991,0002,326,528
16Mar 20, 2026 20:34102,25163,494,86735,842,0001,991,0002,420,736
17Mar 20, 2026 20:34102,27068,786,04834,853,0002,987,0002,424,832
18Mar 20, 2026 20:31102,27668,687,28436,847,000995,0002,428,928
19Mar 20, 2026 20:34102,29770,556,11035,858,0001,992,0002,408,448
20Mar 20, 2026 20:33102,42267,890,68534,905,0002,991,0002,342,912
21Mar 20, 2026 20:29102,45966,256,72235,915,0001,995,0002,342,912
22Mar 20, 2026 20:35102,60068,600,18835,964,0001,998,0002,342,912
23Mar 20, 2026 20:29102,61664,980,74534,971,0002,997,0002,342,912
24Mar 20, 2026 20:32102,79573,904,21435,032,0003,002,0002,330,624
25Mar 20, 2026 20:30102,93063,267,48235,078,0003,006,0002,424,832
26Mar 20, 2026 20:35102,98168,670,38236,098,0002,005,0002,416,640
27Mar 20, 2026 20:30103,54362,983,29036,295,0002,016,0002,424,832
28Mar 20, 2026 20:29104,00865,435,90035,445,0003,038,0002,342,912
29Mar 20, 2026 20:29104,58479,831,81137,678,0001,018,0002,551,808
30Mar 20, 2026 20:35104,58663,651,92436,661,0002,036,0002,523,136