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 15, 2021 17:39piculpiculScore: 73,695Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2021 17:3673,38950,382,96026,149,0001,005,0002,289,664
2Sep 15, 2021 17:4373,39251,921,74425,144,0002,011,0002,289,664
3Sep 15, 2021 17:3673,39751,676,04625,146,0002,011,0002,371,584
4Sep 15, 2021 17:4373,42253,738,21025,154,0002,012,0002,289,664
5Sep 15, 2021 17:3673,44153,384,65225,161,0002,012,0002,523,136
6Sep 15, 2021 17:3673,46554,149,44525,169,0002,013,0002,289,664
7Sep 15, 2021 17:3973,51453,336,01325,186,0002,014,0002,519,040
8Sep 15, 2021 17:3673,51649,874,87426,194,0001,007,0002,289,664
9Sep 15, 2021 17:4373,57050,757,26326,213,0001,008,0002,523,136
10Sep 15, 2021 17:3973,58151,996,50425,209,0002,016,0002,289,664
11Sep 15, 2021 17:3973,58649,364,77125,211,0002,016,0002,523,136
12Sep 15, 2021 17:3673,60549,402,99826,226,0001,008,0002,265,088
13Sep 15, 2021 17:3973,60849,921,47025,218,0002,017,0002,371,584
14Sep 15, 2021 17:4373,61955,085,12325,222,0002,017,0002,289,664
15Sep 15, 2021 17:4373,63849,750,59426,237,0001,009,0002,523,136
16Sep 15, 2021 17:3673,65453,309,92025,234,0002,018,0002,289,664
17Sep 15, 2021 17:4373,65451,633,20525,234,0002,018,0002,289,664
18Sep 15, 2021 17:4373,67352,075,69925,240,0002,019,0002,523,136
19Sep 15, 2021 17:3673,69549,705,99726,258,0001,009,0002,519,040
20Sep 15, 2021 17:3973,69750,681,39125,249,0002,019,0002,289,664
21Sep 15, 2021 17:4373,71958,654,84425,256,0002,020,0002,289,664
22Sep 15, 2021 17:3973,73551,049,46625,262,0002,020,0002,289,664
23Sep 15, 2021 17:3973,84950,324,34225,300,0002,024,0002,519,040
24Sep 15, 2021 17:4373,87850,976,55325,311,0002,024,0002,289,664
25Sep 15, 2021 17:3673,97352,441,47925,343,0002,027,0002,523,136
26Sep 15, 2021 17:3974,05750,640,29626,387,0001,014,0002,527,232
27Sep 15, 2021 17:3974,23857,761,54026,451,0001,017,0002,519,040
28Sep 15, 2021 17:3975,309102,531,04127,864,21502,260,992
29Sep 15, 2021 17:4375,44097,218,61127,912,91802,256,896
30Sep 15, 2021 17:3675,53689,378,49127,948,22102,260,992
31Sep 15, 2021 17:3975,567105,832,48427,959,61302,265,088
32Sep 15, 2021 17:3675,64794,916,03127,989,33302,252,800
33Sep 15, 2021 17:4375,66293,537,16427,995,01602,256,896
34Sep 15, 2021 17:3675,734101,539,04328,021,67702,252,800
35Sep 15, 2021 17:4375,77284,272,57028,035,57902,252,800
36Sep 15, 2021 17:3976,18793,213,26928,189,26402,260,992