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 listSep 28, 2023 17:18mmalczakmmalczakScore: 69,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2023 18:0768,80550,291,78024,440,0001,018,0002,433,024
2Sep 28, 2023 18:0768,85146,079,51725,475,00002,535,424
3Sep 28, 2023 17:1868,95947,051,85524,495,0001,020,0002,424,832
4Sep 28, 2023 18:0769,10551,042,82625,569,00002,535,424
5Sep 28, 2023 18:0769,13253,235,87325,579,00002,428,928
6Sep 28, 2023 17:1869,19550,770,14225,602,00002,273,280
7Sep 28, 2023 18:0769,19758,567,47425,603,00002,433,024
8Sep 28, 2023 18:0769,21953,511,85625,611,00002,535,424
9Sep 28, 2023 18:0769,22247,465,03325,612,00002,514,944
10Sep 28, 2023 18:0769,29752,924,51024,615,0001,025,0002,433,024
11Sep 28, 2023 18:0769,30051,888,78725,641,00002,433,024
12Sep 28, 2023 18:0769,30553,861,10825,643,00002,519,040
13Sep 28, 2023 17:1869,33050,212,59225,652,00002,428,928
14Sep 28, 2023 18:0769,37052,166,54925,667,00002,273,280
15Sep 28, 2023 17:1869,39754,331,55325,677,00002,535,424
16Sep 28, 2023 17:1869,45158,330,61624,670,0001,027,0002,273,280
17Sep 28, 2023 18:0769,45951,922,77925,700,00002,424,832
18Sep 28, 2023 18:0769,85947,985,13323,860,0001,988,0002,514,944
19Sep 28, 2023 17:1869,87656,349,00625,854,00002,535,424
20Sep 28, 2023 18:0769,87655,609,03623,866,0001,988,0002,535,424
21Sep 28, 2023 17:1869,88948,929,21524,865,000994,0002,424,832
22Sep 28, 2023 17:1869,89554,777,02725,861,00002,437,120
23Sep 28, 2023 18:0769,89555,736,72624,867,000994,0002,273,280
24Sep 28, 2023 18:0769,90353,978,19523,875,0001,989,0002,433,024
25Sep 28, 2023 18:0769,91954,753,53723,880,0001,990,0002,514,944
26Sep 28, 2023 18:0769,92751,346,29225,873,00002,433,024
27Sep 28, 2023 17:1869,93559,229,73424,881,000995,0002,273,280
28Sep 28, 2023 17:1871,93889,648,59426,617,23202,281,472
29Sep 28, 2023 18:0772,17996,408,26926,706,38202,281,472
30Sep 28, 2023 18:0772,30589,871,51626,752,96202,277,376
31Sep 28, 2023 18:0772,40087,969,69326,788,09202,281,472
32Sep 28, 2023 18:0772,58593,597,63026,856,52202,293,760
33Sep 28, 2023 18:0772,61584,581,59026,867,70302,285,568
34Sep 28, 2023 17:1872,633105,060,43726,874,35502,273,280
35Sep 28, 2023 18:0772,86292,664,95526,959,06702,289,664
36Sep 28, 2023 17:1872,90691,089,94326,975,03602,289,664