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 19:20mmalczakmmalczakScore: 84,322Success
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 19:1982,51453,126,32629,513,0001,017,0002,289,664
2Sep 16, 2023 19:1983,34956,527,54529,845,000994,0002,289,664
3Sep 16, 2023 19:2083,38456,970,04029,857,000995,0002,269,184
4Sep 16, 2023 19:1883,38661,185,04628,863,0001,990,0002,531,328
5Sep 16, 2023 19:1883,39758,468,90928,867,0001,990,0002,289,664
6Sep 16, 2023 19:1983,42262,016,39228,875,0001,991,0002,273,280
7Sep 16, 2023 19:1983,43258,215,12129,875,000995,0002,359,296
8Sep 16, 2023 19:1883,46856,802,20829,854,0001,029,0002,289,664
9Sep 16, 2023 19:2083,57056,375,83129,924,000997,0002,281,472
10Sep 16, 2023 19:1883,60352,853,05828,938,0001,995,0002,269,184
11Sep 16, 2023 19:1983,72462,460,05528,980,0001,998,0002,265,088
12Sep 16, 2023 19:1983,79760,709,33229,005,0002,000,0002,289,664
13Sep 16, 2023 19:1883,83557,621,03130,019,0001,000,0002,289,664
14Sep 16, 2023 19:2083,95461,546,69129,059,0002,004,0002,289,664
15Sep 16, 2023 19:2084,00561,978,32430,080,0001,002,0002,269,184
16Sep 16, 2023 19:2084,01454,253,86129,080,0002,005,0002,289,664
17Sep 16, 2023 19:1884,08454,935,66829,104,0002,007,0002,289,664
18Sep 16, 2023 19:2084,14154,297,95029,124,0002,008,0002,527,232
19Sep 16, 2023 19:2084,32253,372,20130,193,0001,006,0002,269,184
20Sep 16, 2023 19:1884,38657,835,09629,209,0002,014,0002,289,664
21Sep 16, 2023 19:1884,45754,670,81429,233,0002,016,0002,289,664
22Sep 16, 2023 19:2084,49253,944,56729,246,0002,016,0002,273,280
23Sep 16, 2023 19:1984,71153,637,96630,332,0001,011,0002,265,088
24Sep 16, 2023 19:1984,78162,393,64229,346,0002,023,0002,289,664
25Sep 16, 2023 19:1884,78957,655,40430,360,0001,012,0002,289,664
26Sep 16, 2023 19:1985,01156,062,84929,425,0002,029,0002,289,664
27Sep 16, 2023 19:1985,378103,040,82131,589,83002,256,896
28Sep 16, 2023 19:2085,49561,343,05030,613,0001,020,0002,273,280
29Sep 16, 2023 19:1985,717105,244,66431,715,32102,265,088
30Sep 16, 2023 19:2085,740102,195,74731,723,92902,260,992
31Sep 16, 2023 19:1885,77192,991,24931,735,36202,265,088
32Sep 16, 2023 19:1885,82095,930,70431,753,36402,269,184
33Sep 16, 2023 19:2086,31497,076,97731,936,31002,260,992
34Sep 16, 2023 19:1886,37196,387,18331,957,28402,265,088
35Sep 16, 2023 19:2086,92193,486,79832,160,94002,260,992
36Sep 16, 2023 19:1987,35999,337,62932,322,89002,269,184