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 21, 2023 18:48mmalczakmmalczakScore: 84,300Success
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 18:4882,91656,894,70129,657,0001,022,0002,277,376
2Sep 21, 2023 18:4883,42454,169,00228,876,0001,991,0002,281,472
3Sep 21, 2023 18:4883,43559,497,23429,876,000995,0002,273,280
4Sep 21, 2023 18:4883,45459,489,53729,849,0001,029,0002,289,664
5Sep 21, 2023 18:4883,48663,525,67529,894,000996,0002,289,664
6Sep 21, 2023 18:4883,60357,578,71128,938,0001,995,0002,289,664
7Sep 21, 2023 18:4883,67658,773,53128,963,0001,997,0002,289,664
8Sep 21, 2023 18:4884,30054,161,51830,185,0001,006,0002,273,280
9Sep 21, 2023 18:4884,87857,077,89630,392,0001,013,0002,289,664
10Sep 21, 2023 18:3685,543103,934,45931,650,78502,252,800
11Sep 21, 2023 18:4885,66595,042,40331,696,04902,269,184
12Sep 21, 2023 18:3685,95888,790,41031,804,58402,269,184
13Sep 21, 2023 18:4885,959108,441,06331,804,99402,265,088
14Sep 21, 2023 18:4886,51196,534,21632,009,19402,273,280
15Sep 21, 2023 18:3686,669103,216,62032,067,40602,265,088