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 4, 2024 07:22Andrey LikhachevAndrey LikhachevScore: 70,297Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2024 07:2269,82255,689,76824,841,000993,0002,473,984
2Aug 22, 2024 21:3469,84150,438,62424,848,000993,0002,490,368
3Aug 23, 2024 19:2769,85751,317,66523,859,0001,988,0002,289,664
4Aug 22, 2024 21:3469,86250,938,43823,861,0001,988,0002,289,664
5Aug 23, 2024 19:2769,88654,094,12723,869,0001,989,0002,289,664
6Sep 4, 2024 07:2269,91960,800,12824,875,000995,0002,367,488
7Aug 22, 2024 21:3469,93255,904,41023,885,0001,990,0002,367,488
8Sep 4, 2024 07:2269,93553,889,20523,886,0001,990,0002,379,776
9Sep 4, 2024 07:2269,94957,019,29424,886,000995,0002,367,488
10Aug 22, 2024 21:3470,04959,108,21024,922,000996,0002,355,200
11Sep 4, 2024 07:2270,07052,006,32224,929,000997,0002,473,984
12Aug 23, 2024 19:2770,07852,883,83624,932,000997,0002,367,488
13Aug 23, 2024 19:2770,12253,692,90524,948,000997,0002,371,584
14Aug 23, 2024 19:2770,12454,586,55124,949,000997,0002,379,776
15Aug 23, 2024 19:2770,13051,393,59723,952,0001,996,0002,375,680
16Sep 4, 2024 07:2270,15754,364,54623,962,0001,996,0002,367,488
17Aug 22, 2024 21:3470,20054,717,19524,975,000999,0002,289,664
18Sep 4, 2024 07:2270,22252,288,14723,984,0001,998,0002,375,680
19Sep 4, 2024 07:2270,22448,201,25924,984,000999,0002,289,664
20Sep 4, 2024 07:2270,25153,734,79724,994,000999,0002,363,392
21Sep 4, 2024 07:2270,28959,967,43624,007,0002,000,0002,289,664
22Sep 4, 2024 07:2270,29758,498,74825,010,0001,000,0002,285,568
23Aug 23, 2024 19:2770,34351,564,08225,026,0001,001,0002,371,584
24Sep 4, 2024 07:2270,38953,922,27325,043,0001,001,0002,289,664
25Sep 4, 2024 07:2270,40553,315,17324,047,0002,003,0002,465,792
26Aug 22, 2024 21:3470,44655,388,20724,060,0002,005,0002,379,776
27Sep 4, 2024 07:2270,55457,086,91225,101,0001,004,0002,289,664
28Sep 4, 2024 07:2270,55758,243,78224,098,0002,008,0002,375,680
29Sep 4, 2024 07:2270,56851,612,50324,102,0002,008,0002,371,584
30Aug 23, 2024 19:2770,60351,092,90624,114,0002,009,0002,289,664
31Sep 4, 2024 07:2270,66555,058,54524,135,0002,011,0002,375,680
32Sep 4, 2024 07:2270,73050,754,00725,164,0001,006,0002,359,296
33Aug 22, 2024 21:3470,74648,648,93825,170,0001,006,0002,289,664
34Aug 22, 2024 21:3470,76551,272,06625,176,0001,007,0002,363,392
35Aug 22, 2024 21:3471,00046,396,83024,250,0002,020,0002,371,584
36Aug 23, 2024 19:2771,13252,111,38625,307,0001,012,0002,289,664
37Aug 22, 2024 21:3473,142102,774,59227,062,39102,334,720
38Aug 22, 2024 21:3473,486104,021,42927,189,69002,260,992
39Aug 23, 2024 19:2773,51795,161,53727,201,33102,215,936
40Aug 23, 2024 19:2773,73098,322,20827,280,05902,260,992
41Aug 23, 2024 19:2773,936107,123,56327,356,15402,215,936
42Aug 22, 2024 21:3474,09198,992,60127,413,78802,220,032