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 listMar 25, 2023 20:24Yurkov AlekseyYurkov AlekseyScore: 98,700Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2023 20:2497,14657,077,19433,948,0001,996,0002,289,664
2Mar 25, 2023 20:2597,50060,020,23034,071,0002,004,0002,289,664
3Mar 25, 2023 20:2497,55457,029,73535,093,0001,002,0002,269,184
4Mar 25, 2023 20:2597,60867,145,70035,112,0001,003,0002,273,280
5Mar 25, 2023 20:2597,77862,429,64934,169,0002,009,0002,289,664
6Mar 25, 2023 20:2497,80565,084,33434,178,0002,010,0002,277,376
7Mar 25, 2023 20:2597,98658,571,83234,241,0002,014,0002,277,376
8Mar 25, 2023 20:2498,18958,207,24134,312,0002,018,0002,289,664
9Mar 25, 2023 20:2598,23557,487,96634,328,0002,019,0002,531,328
10Mar 25, 2023 20:2598,34658,843,88835,378,0001,010,0002,277,376
11Mar 25, 2023 20:2598,66264,990,17134,477,0002,028,0002,289,664
12Mar 25, 2023 20:2498,67658,978,85435,496,0001,014,0002,281,472
13Mar 25, 2023 20:2498,70058,467,76336,519,00002,269,184
14Mar 25, 2023 20:2498,88168,473,49335,570,0001,016,0002,289,664
15Mar 25, 2023 20:2499,08966,998,20335,645,0001,018,0002,281,472
16Mar 25, 2023 20:2599,17665,881,54536,695,00002,289,664
17Mar 25, 2023 20:2599,42499,476,45136,786,82002,269,184
18Mar 25, 2023 20:2599,439111,059,32536,792,46602,260,992
19Mar 25, 2023 20:2599,53062,057,50635,831,000995,0002,273,280
20Mar 25, 2023 20:2499,726108,162,72036,898,64002,273,280
21Mar 25, 2023 20:2499,80560,003,51434,932,0001,996,0002,277,376
22Mar 25, 2023 20:2499,981103,839,21436,992,85902,269,184
23Mar 25, 2023 20:24100,41399,204,51637,152,77302,273,280
24Mar 25, 2023 20:25100,86496,845,84837,319,82302,265,088