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 16, 2023 16:15mmalczakmmalczakScore: 98,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 16, 2023 16:1297,24957,970,11733,983,0001,999,0002,289,664
2Sep 16, 2023 16:1597,43059,122,64034,047,0002,002,0002,289,664
3Sep 16, 2023 16:1797,63559,003,08635,122,0001,003,0002,531,328
4Sep 16, 2023 16:3997,64160,158,12034,120,0002,007,0002,289,664
5Sep 16, 2023 16:1597,65164,966,02534,124,0002,007,0002,289,664
6Sep 16, 2023 16:3997,69258,161,81934,138,0002,008,0002,273,280
7Sep 16, 2023 16:3997,75763,450,20735,166,0001,004,0002,289,664
8Sep 16, 2023 16:1297,75957,854,34534,162,0002,009,0002,289,664
9Sep 16, 2023 16:1297,77360,584,15834,167,0002,009,0002,273,280
10Sep 16, 2023 16:3997,77660,146,73034,168,0002,009,0002,289,664
11Sep 16, 2023 16:3997,87658,569,07034,203,0002,011,0002,289,664
12Sep 16, 2023 16:1598,01463,309,60934,251,0002,014,0002,289,664
13Sep 16, 2023 16:1598,03060,797,63934,256,0002,015,0002,289,664
14Sep 16, 2023 16:1298,04959,496,22434,263,0002,015,0002,289,664
15Sep 16, 2023 16:1298,14658,983,03834,297,0002,017,0002,273,280
16Sep 16, 2023 16:1298,14961,713,57835,334,000981,0002,277,376
17Sep 16, 2023 16:1798,18459,296,99434,310,0002,018,0002,285,568
18Sep 16, 2023 16:1798,30059,680,71734,351,0002,020,0002,289,664
19Sep 16, 2023 16:1798,36261,914,85134,373,0002,021,0002,289,664
20Sep 16, 2023 16:1798,47059,667,45534,410,0002,024,0002,531,328
21Sep 16, 2023 16:3998,63859,678,75936,496,00002,281,472
22Sep 16, 2023 16:1598,65960,898,52636,504,00002,289,664
23Sep 16, 2023 16:1598,66261,181,51934,477,0002,028,0002,281,472
24Sep 16, 2023 16:1798,77669,159,81835,532,0001,015,0002,289,664
25Sep 16, 2023 16:3998,90058,334,32536,593,00002,289,664
26Sep 16, 2023 16:1298,91463,814,97935,582,0001,016,0002,527,232
27Sep 16, 2023 16:1798,93562,464,40435,590,0001,016,0002,289,664
28Sep 16, 2023 16:1298,99566,258,91335,611,0001,017,0002,289,664
29Sep 16, 2023 16:3999,00066,460,95435,613,0001,017,0002,289,664
30Sep 16, 2023 16:1599,01463,837,59935,618,0001,017,0002,289,664
31Sep 16, 2023 16:1299,07366,779,82035,639,0001,018,0002,289,664
32Sep 16, 2023 16:1799,16863,633,77335,673,0001,019,0002,277,376
33Sep 16, 2023 16:1599,35798,892,59836,761,95802,273,280
34Sep 16, 2023 16:3999,48656,478,32334,821,0001,989,0002,383,872
35Sep 16, 2023 16:3999,522103,887,29136,823,32102,256,896
36Sep 16, 2023 16:1299,619112,983,26436,859,15602,269,184
37Sep 16, 2023 16:1599,62263,903,73035,864,000996,0002,273,280
38Sep 16, 2023 16:1599,708104,734,21836,891,93602,273,280
39Sep 16, 2023 16:1799,806110,500,41536,928,03702,273,280
40Sep 16, 2023 16:3999,80792,738,86336,928,46402,277,376
41Sep 16, 2023 16:1299,91997,283,40436,970,04902,265,088
42Sep 16, 2023 16:1799,98459,603,94934,995,0001,999,0002,359,296
43Sep 16, 2023 16:15100,08464,702,25936,031,0001,000,0002,273,280
44Sep 16, 2023 16:17100,215115,910,45037,079,47602,273,280
45Sep 16, 2023 16:15100,39899,495,06937,147,37002,265,088
46Sep 16, 2023 16:39100,58099,430,21637,214,66402,269,184
47Sep 16, 2023 16:17100,75587,044,73637,279,51902,256,896
48Sep 16, 2023 16:12100,78495,524,17037,289,93302,273,280