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 listMay 22, 2024 20:01CemaCemaScore: 94,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2024 19:5992,01656,881,26931,042,0003,004,0002,289,664
2May 22, 2024 19:5992,93259,027,28232,363,0002,022,0002,281,472
3May 22, 2024 19:5993,37059,028,67632,515,0002,032,0002,281,472
4May 22, 2024 20:0193,37655,445,66734,549,00002,506,752
5May 22, 2024 20:0193,55759,911,29132,580,0002,036,0002,506,752
6May 22, 2024 20:0193,65761,282,14833,634,0001,019,0002,281,472
7May 22, 2024 19:5993,67865,483,62131,603,0003,058,0002,281,472
8May 22, 2024 19:5993,70363,747,62434,670,00002,281,472
9May 22, 2024 19:5993,80863,945,91832,668,0002,041,0002,281,472
10May 22, 2024 20:0193,82266,240,45732,731,0001,983,0002,506,752
11May 22, 2024 20:0194,11660,624,86733,829,000994,0002,506,752
12May 22, 2024 20:0194,18960,842,02432,859,0001,991,0002,506,752
13May 22, 2024 20:0194,22258,620,07832,870,0001,992,0002,281,472
14May 22, 2024 20:0194,51157,475,97132,971,0001,998,0002,289,664
15May 22, 2024 20:0194,67856,828,62533,030,0002,001,0002,281,472
16May 22, 2024 19:5994,73859,949,00233,050,0002,003,0002,281,472
17May 22, 2024 19:5994,93259,457,82432,115,0003,010,0002,506,752
18May 22, 2024 19:5995,19559,211,15631,197,0004,025,0002,281,472
19May 22, 2024 19:5997,82299,317,26636,194,16002,236,416
20May 22, 2024 19:5999,43397,077,60736,790,32002,215,936
21May 22, 2024 19:5999,51699,102,26736,820,99602,228,224
22May 22, 2024 20:0199,595120,266,85136,850,15302,228,224
23May 22, 2024 20:01100,134117,617,86837,049,61602,232,320
24May 22, 2024 20:01100,165116,881,56337,060,95902,228,224