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 listFeb 22, 2024 03:24Huy Duc LeHuy Duc LeScore: 73,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 03:2572,87050,657,68224,965,0001,997,0002,281,472
2Feb 22, 2024 03:2472,88450,851,01724,970,0001,997,0002,281,472
3Feb 22, 2024 03:2472,91950,185,16824,982,0001,998,0002,281,472
4Feb 22, 2024 03:2573,04653,275,87024,024,0003,003,0002,281,472
5Feb 22, 2024 03:2573,06249,766,56925,031,0002,002,0002,494,464
6Feb 22, 2024 03:2573,10349,641,68724,043,0003,005,0002,281,472
7Feb 22, 2024 03:2473,11152,453,17924,046,0003,005,0002,498,560
8Feb 22, 2024 03:2573,13553,973,81525,056,0002,004,0002,494,464
9Feb 22, 2024 03:2473,16548,180,25225,066,0002,005,0002,281,472
10Feb 22, 2024 03:2573,16856,117,13623,062,0004,010,0002,486,272
11Feb 22, 2024 03:2573,16848,263,10925,067,0002,005,0002,338,816
12Feb 22, 2024 03:2573,20351,030,13824,076,0003,009,0002,498,560
13Feb 22, 2024 03:2473,27351,600,49724,099,0003,012,0002,281,472
14Feb 22, 2024 03:2473,34354,777,36925,127,0002,010,0002,490,368
15Feb 22, 2024 03:2573,34351,488,62524,122,0003,015,0002,494,464
16Feb 22, 2024 03:2473,39552,231,95925,145,0002,011,0002,281,472
17Feb 22, 2024 03:2473,41149,754,69625,150,0002,012,0002,498,560
18Feb 22, 2024 03:2473,52252,785,13226,196,0001,007,0002,502,656
19Feb 22, 2024 03:2577,40597,343,82828,639,96002,232,320
20Feb 22, 2024 03:2577,49487,167,02228,672,70602,306,048
21Feb 22, 2024 03:2477,562101,206,50528,698,03802,224,128
22Feb 22, 2024 03:2477,67996,441,66928,741,18802,224,128
23Feb 22, 2024 03:2577,745100,552,74628,765,69402,232,320
24Feb 22, 2024 03:2477,798104,895,98828,785,25002,232,320