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 20, 2023 16:25mmalczakmmalczakScore: 84,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2023 06:0082,26559,713,88928,409,0002,029,0002,289,664
2Sep 20, 2023 16:2583,20859,748,47628,801,0001,986,0002,289,664
3Sep 21, 2023 06:0083,36558,914,27730,845,00002,281,472
4Sep 20, 2023 16:2583,36558,975,05530,845,00002,289,664
5Sep 21, 2023 06:0083,38960,421,41928,864,0001,990,0002,273,280
6Sep 21, 2023 06:0083,39556,737,37429,861,000995,0002,281,472
7Sep 20, 2023 16:2583,56552,734,57328,925,0001,994,0002,289,664
8Sep 21, 2023 06:0083,67859,117,08029,963,000998,0002,531,328
9Sep 20, 2023 16:2583,68151,885,27528,965,0001,997,0002,265,088
10Sep 20, 2023 16:2583,73054,024,31728,982,0001,998,0002,531,328
11Sep 20, 2023 16:2583,92752,404,71430,052,0001,001,0002,289,664
12Sep 21, 2023 06:0084,09553,358,76229,108,0002,007,0002,269,184
13Sep 20, 2023 16:2584,22257,233,66929,152,0002,010,0002,289,664
14Sep 20, 2023 16:2584,26553,922,72129,167,0002,011,0002,289,664
15Sep 21, 2023 06:0084,36255,504,71029,201,0002,013,0002,277,376
16Sep 20, 2023 16:2584,49552,816,33530,255,0001,008,0002,273,280
17Sep 21, 2023 06:0084,64951,192,34829,300,0002,020,0002,289,664
18Sep 21, 2023 06:0085,11157,405,55830,476,0001,015,0002,269,184
19Sep 21, 2023 06:0085,141109,627,09931,502,07602,269,184
20Sep 20, 2023 16:2585,51298,171,45531,639,50802,265,088
21Sep 20, 2023 16:2585,69085,264,79831,705,17102,256,896
22Sep 21, 2023 06:0085,78998,669,20031,741,81402,260,992
23Sep 20, 2023 16:2586,262102,001,32231,916,97202,265,088
24Sep 21, 2023 06:0086,678114,404,88032,070,83202,265,088