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 listAug 15, 2021 20:23Igor VolkovIgor VolkovScore: 102,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2021 20:23101,18169,472,09536,426,0001,011,0002,289,664
2Aug 15, 2021 20:01101,49265,292,45936,538,0001,014,0002,510,848
3Aug 15, 2021 20:01101,56567,680,29836,564,0001,015,0002,265,088
4Aug 15, 2021 20:23101,65771,781,71836,597,0001,016,0002,289,664
5Aug 15, 2021 20:01101,68464,690,87937,623,00002,269,184
6Aug 15, 2021 20:01102,17664,924,80835,816,0001,989,0002,531,328
7Aug 15, 2021 20:01102,24664,179,68637,831,00002,531,328
8Aug 15, 2021 20:23102,28464,251,73536,850,000995,0002,289,664
9Aug 15, 2021 20:01102,30064,162,66935,859,0001,992,0002,269,184
10Aug 15, 2021 20:23102,35165,460,82735,877,0001,993,0002,289,664
11Aug 15, 2021 20:23102,37867,529,49935,887,0001,993,0002,289,664
12Aug 15, 2021 20:23102,48661,661,49035,925,0001,995,0002,523,136
13Aug 15, 2021 20:01102,79561,582,86336,033,0002,001,0002,289,664
14Aug 15, 2021 20:23102,81165,547,24436,038,0002,002,0002,289,664
15Aug 15, 2021 20:23103,03860,752,33136,118,0002,006,0002,289,664
16Aug 15, 2021 20:23103,092113,777,90638,144,03502,269,184
17Aug 15, 2021 20:23103,17865,045,85836,167,0002,009,0002,289,664
18Aug 15, 2021 20:01103,28461,656,03536,204,0002,011,0002,289,664
19Aug 15, 2021 20:01103,30388,498,81738,222,10202,265,088
20Aug 15, 2021 20:01103,47067,534,08537,277,0001,007,0002,523,136
21Aug 15, 2021 20:01103,616106,134,41438,337,78802,252,800
22Aug 15, 2021 20:23104,230113,108,25738,564,94002,273,280
23Aug 15, 2021 20:01104,526111,143,58538,674,76802,260,992
24Aug 15, 2021 20:23104,936121,668,21938,826,30102,260,992