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 listMay 22, 2024 19:54CemaCemaScore: 113,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 19:54111,92265,810,33138,381,0003,030,0002,502,656
2May 22, 2024 19:55111,95170,256,39040,412,0001,010,0002,506,752
3May 22, 2024 19:55112,06267,734,00438,430,0003,033,0002,506,752
4May 22, 2024 19:54112,17667,045,29539,481,0002,024,0002,502,656
5May 22, 2024 19:55112,23064,838,37541,525,00002,281,472
6May 22, 2024 19:54112,40370,706,83338,546,0003,043,0002,506,752
7May 22, 2024 19:55112,42465,804,16740,583,0001,014,0002,502,656
8May 22, 2024 19:55112,44372,510,66639,575,0002,029,0002,506,752
9May 22, 2024 19:54112,47369,398,97740,600,0001,015,0002,281,472
10May 22, 2024 19:54112,47668,015,56439,586,0002,030,0002,326,528
11May 22, 2024 19:55112,74974,720,51741,717,00002,281,472
12May 22, 2024 19:55112,98969,021,05840,811,000995,0002,314,240
13May 22, 2024 19:54113,08673,279,37839,850,0001,992,0002,281,472
14May 22, 2024 19:54113,14667,287,66839,822,0002,042,0002,506,752
15May 22, 2024 19:54113,20866,582,04839,893,0001,994,0002,281,472
16May 22, 2024 19:54113,48970,225,69139,992,0001,999,0002,281,472
17May 22, 2024 19:55113,54964,342,56041,013,0001,000,0002,342,912
18May 22, 2024 19:55114,00564,317,62841,178,0001,004,0002,371,584
19May 22, 2024 19:55116,809108,810,85543,219,51202,232,320
20May 22, 2024 19:55117,456117,323,09343,458,65602,224,128
21May 22, 2024 19:54117,613104,786,27743,516,68802,236,416
22May 22, 2024 19:54117,61596,162,93543,517,48302,232,320
23May 22, 2024 19:55118,489114,919,85843,840,90502,232,320
24May 22, 2024 19:54118,692134,229,29243,915,87802,170,880