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 17:07mmalczakmmalczakScore: 84,168Success
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 17:0782,57654,346,53029,535,0001,018,0002,273,280
2Sep 16, 2023 17:0282,98960,820,06129,683,0001,023,0002,289,664
3Sep 16, 2023 19:2583,14156,581,28129,737,0001,025,0002,289,664
4Sep 16, 2023 17:0783,16254,387,36229,778,000992,0002,273,280
5Sep 16, 2023 17:0283,35161,698,62829,846,000994,0002,289,664
6Sep 16, 2023 17:0283,39260,099,61229,860,000995,0002,289,664
7Sep 18, 2023 07:0883,40556,470,18529,865,000995,0002,289,664
8Sep 16, 2023 19:2583,41457,455,85028,872,0001,991,0002,289,664
9Sep 16, 2023 19:2583,41657,141,51728,873,0001,991,0002,277,376
10Sep 16, 2023 17:0283,49556,961,54928,900,0001,993,0002,277,376
11Sep 18, 2023 07:0883,58958,986,59028,933,0001,995,0002,281,472
12Sep 16, 2023 17:0783,59553,564,25328,935,0001,995,0002,289,664
13Sep 16, 2023 17:0783,70053,626,48828,971,0001,998,0002,289,664
14Sep 16, 2023 17:0283,81152,124,56829,010,0002,000,0002,277,376
15Sep 18, 2023 07:0883,83255,473,69930,018,0001,000,0002,289,664
16Sep 16, 2023 19:2583,84354,170,94629,021,0002,001,0002,527,232
17Sep 18, 2023 07:0883,92755,037,43229,050,0002,003,0002,289,664
18Sep 16, 2023 19:2583,97353,895,46229,066,0002,004,0002,371,584
19Sep 18, 2023 07:0883,97854,965,34529,068,0002,004,0002,289,664
20Sep 16, 2023 19:2584,02260,101,72130,086,0001,002,0002,527,232
21Sep 16, 2023 17:0784,02757,899,80330,088,0001,002,0002,289,664
22Sep 18, 2023 07:0884,10054,864,85829,110,0002,007,0002,269,184
23Sep 16, 2023 17:0284,10059,599,05929,110,0002,007,0002,289,664
24Sep 16, 2023 17:0284,13055,008,33129,120,0002,008,0002,289,664
25Sep 16, 2023 17:0284,16851,972,15729,133,0002,009,0002,392,064
26Sep 16, 2023 19:2584,21457,438,92529,149,0002,010,0002,273,280
27Sep 18, 2023 07:0884,23858,729,27729,158,0002,010,0002,273,280
28Sep 16, 2023 19:2584,26859,131,34829,168,0002,011,0002,289,664
29Sep 16, 2023 17:0784,31454,402,47529,184,0002,012,0002,277,376
30Sep 18, 2023 07:0884,39759,445,45429,213,0002,014,0002,281,472
31Sep 16, 2023 17:0784,47654,762,63630,248,0001,008,0002,277,376
32Sep 16, 2023 19:2584,53256,998,75729,260,0002,017,0002,289,664
33Sep 16, 2023 17:0784,65755,034,25229,303,0002,020,0002,289,664
34Sep 16, 2023 17:0284,65954,972,28429,304,0002,020,0002,289,664
35Sep 16, 2023 17:0784,74654,975,46629,333,0002,023,0002,359,296
36Sep 18, 2023 07:0884,82755,394,91230,374,0001,012,0002,273,280
37Sep 16, 2023 19:2585,39993,092,16031,597,81402,273,280
38Sep 18, 2023 07:0885,436116,078,00431,611,48702,269,184
39Sep 16, 2023 17:0285,490116,301,66131,631,36502,273,280
40Sep 16, 2023 17:0285,59294,832,38531,668,86602,269,184
41Sep 16, 2023 19:2585,992101,156,63431,817,11602,269,184
42Sep 18, 2023 07:0885,99892,794,16531,819,41302,265,088
43Sep 16, 2023 17:0786,046106,052,69631,837,03902,273,280
44Sep 16, 2023 17:0286,11993,274,21731,864,09402,265,088
45Sep 16, 2023 17:0786,272101,243,33631,920,63702,273,280
46Sep 16, 2023 19:2586,45897,277,40731,989,36402,256,896
47Sep 16, 2023 17:0786,79898,749,95832,115,39802,252,800
48Sep 18, 2023 07:0886,90091,714,40232,153,13702,260,992