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 18, 2023 12:52mmalczakmmalczakScore: 84,049Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2023 13:0182,57352,687,26229,534,0001,018,0002,523,136
2Sep 18, 2023 13:0182,91456,820,86929,656,0001,022,0002,269,184
3Sep 20, 2023 16:2982,97660,195,63329,678,0001,023,0002,289,664
4Sep 18, 2023 13:0182,98458,763,94729,681,0001,023,0002,289,664
5Sep 18, 2023 13:0783,30360,774,99030,822,00002,289,664
6Sep 18, 2023 12:5283,44160,407,01928,882,0001,991,0002,289,664
7Sep 20, 2023 16:2983,45955,001,40028,888,0001,992,0002,527,232
8Sep 18, 2023 13:0783,46856,941,63528,891,0001,992,0002,277,376
9Sep 18, 2023 13:0183,48158,195,53529,892,000996,0002,269,184
10Sep 20, 2023 16:2983,48159,458,56729,859,0001,029,0002,289,664
11Sep 18, 2023 13:0183,51152,745,90529,903,000996,0002,277,376
12Sep 18, 2023 13:0783,51456,663,18728,907,0001,993,0002,273,280
13Sep 18, 2023 13:0783,59555,001,39628,935,0001,995,0002,281,472
14Sep 18, 2023 12:5283,63253,564,48328,948,0001,996,0002,289,664
15Sep 18, 2023 13:0783,65153,386,33429,953,000998,0002,289,664
16Sep 18, 2023 13:0783,70054,117,56028,971,0001,998,0002,531,328
17Sep 18, 2023 12:5283,71154,011,79228,975,0001,998,0002,289,664
18Sep 18, 2023 13:0183,78457,932,85329,000,0002,000,0002,289,664
19Sep 20, 2023 16:2983,80357,477,59029,007,0002,000,0002,289,664
20Sep 20, 2023 16:2983,80354,750,10029,007,0002,000,0002,269,184
21Sep 18, 2023 12:5283,81955,662,63829,013,0002,000,0002,277,376
22Sep 18, 2023 13:0783,82753,822,63529,015,0002,001,0002,269,184
23Sep 20, 2023 16:2983,88452,086,95730,036,0001,001,0002,289,664
24Sep 18, 2023 13:0184,04151,974,52529,089,0002,006,0002,289,664
25Sep 18, 2023 12:5284,04950,914,62730,095,0001,003,0002,285,568
26Sep 18, 2023 13:0784,08452,807,61829,104,0002,007,0002,289,664
27Sep 18, 2023 12:5284,10054,039,70430,114,0001,003,0002,277,376
28Sep 20, 2023 16:2984,14657,229,76730,130,0001,004,0002,277,376
29Sep 20, 2023 16:2984,16552,923,46529,132,0002,009,0002,355,200
30Sep 18, 2023 12:5284,17854,618,72829,137,0002,009,0002,289,664
31Sep 18, 2023 13:0184,24354,325,40830,165,0001,005,0002,289,664
32Sep 20, 2023 16:2984,34653,692,31029,195,0002,013,0002,289,664
33Sep 18, 2023 12:5284,34953,733,62029,196,0002,013,0002,289,664
34Sep 18, 2023 13:0784,50357,290,26030,258,0001,008,0002,289,664
35Sep 18, 2023 13:0184,51159,600,53329,252,0002,017,0002,273,280
36Sep 18, 2023 12:5284,62764,938,69429,292,0002,020,0002,289,664
37Sep 18, 2023 12:5285,463106,679,87331,621,19302,260,992
38Sep 18, 2023 12:5285,573100,211,37931,661,83702,252,800
39Sep 18, 2023 13:0785,583106,360,98631,665,64602,252,800
40Sep 18, 2023 13:0185,681106,202,19631,701,87002,273,280
41Sep 20, 2023 16:2985,704104,209,84331,710,48502,260,992
42Sep 20, 2023 16:2985,808103,524,32531,749,05602,265,088
43Sep 18, 2023 13:0785,905101,046,23531,784,69602,269,184
44Sep 18, 2023 13:0185,970110,136,04531,808,94802,265,088
45Sep 18, 2023 13:0786,041110,172,77831,835,29602,265,088
46Sep 18, 2023 13:0186,407104,329,07431,970,59602,265,088
47Sep 20, 2023 16:2986,52397,556,57732,013,56702,269,184
48Sep 18, 2023 12:5286,683106,825,30332,072,89402,256,896