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 listJul 13, 2021 17:59Yuriy LyfenkoYuriy LyfenkoScore: 88,843Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 18:0086,74658,388,51429,087,0003,009,0002,490,368
2Jul 13, 2021 17:5987,00851,927,07129,175,0003,018,0002,310,144
3Jul 13, 2021 17:5987,58154,434,94531,393,0001,012,0002,498,560
4Jul 13, 2021 17:5887,73554,045,99130,434,0002,028,0002,363,392
5Jul 13, 2021 18:0087,87053,756,61530,480,0002,032,0002,306,048
6Jul 13, 2021 17:5987,96863,349,18430,514,0002,034,0002,490,368
7Jul 13, 2021 17:5988,00354,901,00131,544,0001,017,0002,494,464
8Jul 13, 2021 17:5888,05761,079,88431,563,0001,018,0002,494,464
9Jul 13, 2021 18:0088,28458,165,34931,645,0001,020,0002,355,200
10Jul 13, 2021 18:0088,28662,916,01430,625,0002,041,0002,494,464
11Jul 13, 2021 17:5888,70060,876,61330,830,0001,989,0002,306,048
12Jul 13, 2021 17:5888,72258,644,97330,838,0001,989,0002,310,144
13Jul 13, 2021 17:5888,72760,011,90831,835,000994,0002,314,240
14Jul 13, 2021 17:5888,77856,396,19830,858,0001,990,0002,330,624
15Jul 13, 2021 18:0088,79265,548,06930,862,0001,991,0002,498,560
16Jul 13, 2021 17:5888,81659,399,87330,871,0001,991,0002,318,336
17Jul 13, 2021 17:5988,81958,393,52030,872,0001,991,0002,494,464
18Jul 13, 2021 18:0088,84158,881,21530,879,0001,992,0002,318,336
19Jul 13, 2021 17:5988,84356,217,05529,884,0002,988,0002,306,048
20Jul 13, 2021 17:5888,85758,185,79030,885,0001,992,0002,318,336
21Jul 13, 2021 18:0088,85958,063,23930,886,0001,992,0002,494,464
22Jul 13, 2021 17:5988,90557,142,38130,902,0001,993,0002,482,176
23Jul 13, 2021 17:5888,94898,157,21032,910,87302,289,664
24Jul 13, 2021 17:5889,10789,946,14832,969,42402,281,472
25Jul 13, 2021 17:5989,12756,693,64830,979,0001,998,0002,351,104
26Jul 13, 2021 18:0089,12758,900,76030,979,0001,998,0002,314,240
27Jul 13, 2021 18:0089,355110,348,20433,061,30902,293,760
28Jul 13, 2021 18:0089,43592,701,76833,091,06302,277,376
29Jul 13, 2021 17:5989,862103,501,21133,248,97302,281,472
30Jul 13, 2021 18:0089,92759,949,81031,257,0002,016,0002,490,368
31Jul 13, 2021 17:5989,93598,782,26233,275,79102,285,568
32Jul 13, 2021 17:5989,95299,601,61633,282,36302,297,856
33Jul 13, 2021 18:0089,96099,103,71033,285,18502,289,664
34Jul 13, 2021 17:5890,05996,735,56833,321,78202,289,664
35Jul 13, 2021 17:5990,08455,018,40630,301,0003,030,0002,314,240
36Jul 13, 2021 17:5890,15960,522,24031,338,0002,021,0002,502,656