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 19:29Igor VolkovIgor VolkovScore: 98,716Success
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 19:2897,18158,981,52834,959,000998,0002,289,664
2Aug 15, 2021 19:2897,70057,735,32434,141,0002,008,0002,531,328
3Aug 15, 2021 19:2897,70361,407,62135,146,0001,004,0002,289,664
4Aug 15, 2021 19:2998,06559,304,00134,269,0002,015,0002,281,472
5Aug 15, 2021 19:2998,06561,444,69534,269,0002,015,0002,531,328
6Aug 15, 2021 19:2998,07656,677,19134,272,0002,016,0002,289,664
7Aug 15, 2021 19:2898,20358,546,25635,326,0001,009,0002,289,664
8Aug 15, 2021 19:2898,20562,968,23934,318,0002,018,0002,519,040
9Aug 15, 2021 19:2998,24959,058,17635,343,0001,009,0002,273,280
10Aug 15, 2021 19:2998,27664,403,66934,342,0002,020,0002,289,664
11Aug 15, 2021 19:2898,28458,020,05535,355,0001,010,0002,289,664
12Aug 15, 2021 19:2998,55159,366,12535,452,0001,012,0002,289,664
13Aug 15, 2021 19:2898,71662,723,19436,525,00002,289,664
14Aug 15, 2021 19:2998,73261,696,69235,517,0001,014,0002,289,664
15Aug 15, 2021 19:2898,83054,318,76035,552,0001,015,0002,289,664
16Aug 15, 2021 19:2898,86862,827,62835,565,0001,016,0002,289,664
17Aug 15, 2021 19:2899,141101,770,19636,682,25002,265,088
18Aug 15, 2021 19:2999,349107,474,61536,758,96602,260,992
19Aug 15, 2021 19:2899,53599,623,27436,828,10602,252,800
20Aug 15, 2021 19:2999,61668,982,67834,866,0001,992,0002,289,664
21Aug 15, 2021 19:2999,85163,160,24434,948,0001,997,0002,273,280
22Aug 15, 2021 19:28100,103102,809,72337,037,92502,260,992
23Aug 15, 2021 19:29100,275109,671,50237,101,64402,260,992
24Aug 15, 2021 19:29100,33797,350,41937,124,68102,273,280