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 16:30mmalczakmmalczakScore: 69,830Success
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 16:3068,82246,002,29724,446,0001,018,0002,424,832
2Sep 28, 2023 17:1268,85144,873,83724,456,0001,019,0002,428,928
3Sep 28, 2023 17:1268,86845,918,24125,481,00002,428,928
4Sep 28, 2023 17:1268,96546,798,24625,517,00002,535,424
5Sep 28, 2023 17:1268,98151,398,39625,523,00002,535,424
6Sep 28, 2023 16:3068,98946,483,95725,526,00002,433,024
7Sep 28, 2023 17:1268,99251,878,14725,527,00002,273,280
8Sep 28, 2023 17:1569,00348,260,46425,531,00002,273,280
9Sep 28, 2023 17:1269,07646,109,86025,558,00002,420,736
10Sep 28, 2023 17:1269,08449,897,81624,539,0001,022,0002,428,928
11Sep 28, 2023 17:1569,14947,826,82325,585,00002,273,280
12Sep 28, 2023 17:1269,15950,976,06525,589,00002,424,832
13Sep 28, 2023 16:3069,16252,571,01425,590,00002,535,424
14Sep 28, 2023 16:3069,16853,098,29825,592,00002,535,424
15Sep 28, 2023 16:3069,20350,101,15925,605,00002,535,424
16Sep 28, 2023 17:1569,21649,257,02824,586,0001,024,0002,535,424
17Sep 28, 2023 16:3069,21649,601,70624,586,0001,024,0002,273,280
18Sep 28, 2023 16:3069,22450,434,45424,589,0001,024,0002,535,424
19Sep 28, 2023 17:1269,23851,375,28525,618,00002,428,928
20Sep 28, 2023 17:1569,25151,714,91825,623,00002,428,928
21Sep 28, 2023 17:1269,26551,512,49324,603,0001,025,0002,424,832
22Sep 28, 2023 16:3069,34351,910,18124,631,0001,026,0002,424,832
23Sep 28, 2023 16:3069,35456,202,04724,635,0001,026,0002,273,280
24Sep 28, 2023 17:1569,35750,537,40324,636,0001,026,0002,433,024
25Sep 28, 2023 17:1269,36850,982,13624,640,0001,026,0002,535,424
26Sep 28, 2023 16:3069,37056,226,32325,667,00002,535,424
27Sep 28, 2023 17:1569,49757,308,69125,714,00002,433,024
28Sep 28, 2023 17:1569,51155,809,87025,719,00002,535,424
29Sep 28, 2023 17:1269,64649,852,42524,778,000991,0002,433,024
30Sep 28, 2023 16:3069,75155,896,39224,816,000992,0002,428,928
31Sep 28, 2023 16:3069,83052,351,99023,850,0001,987,0002,433,024
32Sep 28, 2023 16:3069,85451,734,48324,852,000994,0002,535,424
33Sep 28, 2023 16:3069,86258,642,14123,861,0001,988,0002,433,024
34Sep 28, 2023 17:1569,86555,312,10023,862,0001,988,0002,535,424
35Sep 28, 2023 17:1269,87853,555,72124,861,000994,0002,437,120
36Sep 28, 2023 17:1269,87851,783,86624,861,000994,0002,273,280
37Sep 28, 2023 16:3069,88155,332,21924,862,000994,0002,420,736
38Sep 28, 2023 17:1269,88455,878,46725,857,00002,535,424
39Sep 28, 2023 17:1269,88453,159,39725,857,00002,437,120
40Sep 28, 2023 17:1269,90352,262,70325,864,00002,535,424
41Sep 28, 2023 16:3069,90850,664,43324,872,000994,0002,273,280
42Sep 28, 2023 16:3069,90847,231,99524,832,0001,034,0002,535,424
43Sep 28, 2023 16:3069,92251,421,36524,876,000995,0002,428,928
44Sep 28, 2023 17:1569,93252,586,19423,885,0001,990,0002,424,832
45Sep 28, 2023 17:1269,96252,189,98324,891,000995,0002,428,928
46Sep 28, 2023 17:1272,25883,923,87026,735,63902,281,472
47Sep 28, 2023 16:3072,26088,855,47126,736,05202,277,376
48Sep 28, 2023 16:3072,28096,602,02926,743,64702,285,568
49Sep 28, 2023 17:1272,33395,911,86426,763,34402,289,664
50Sep 28, 2023 17:1572,35898,962,38826,772,36402,285,568
51Sep 28, 2023 16:3072,37387,549,20426,777,87602,285,568
52Sep 28, 2023 17:1572,45995,233,03026,809,69002,297,856
53Sep 28, 2023 17:1272,481105,226,57426,817,91402,289,664
54Sep 28, 2023 17:1272,52080,157,72626,832,21502,285,568
55Sep 28, 2023 17:1272,52793,475,13026,835,05402,281,472
56Sep 28, 2023 16:3072,53092,708,56926,836,27502,277,376
57Sep 28, 2023 16:3072,53798,596,77026,838,72802,285,568
58Sep 28, 2023 16:3072,55794,260,24026,846,14002,285,568
59Sep 28, 2023 17:1572,56387,259,09026,848,31402,289,664
60Sep 28, 2023 17:1273,06293,505,48627,032,90802,281,472