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 listApr 3, 2023 22:19Franek KortaFranek KortaScore: 73,678Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 3, 2023 22:1973,10058,413,45325,044,0002,003,0002,531,328
2Apr 3, 2023 22:1973,15451,385,25326,065,0001,002,0002,269,184
3Apr 3, 2023 22:1973,28652,381,86125,108,0002,008,0002,445,312
4Aug 27, 2023 15:4673,29546,816,38425,111,0002,008,0002,265,088
5Aug 27, 2023 15:4673,31454,729,52626,122,0001,004,0002,437,120
6Aug 27, 2023 15:4673,40349,928,29224,142,0003,017,0002,531,328
7Aug 27, 2023 15:4673,44950,096,58126,170,0001,006,0002,269,184
8Apr 3, 2023 22:1973,44948,739,77924,157,0003,019,0002,531,328
9Aug 27, 2023 15:4673,58449,956,21625,210,0002,016,0002,445,312
10Aug 27, 2023 15:4673,58650,449,69826,219,0001,008,0002,437,120
11Apr 3, 2023 22:1973,62251,815,89725,223,0002,017,0002,531,328
12Aug 27, 2023 15:4673,64948,884,98124,223,0003,027,0002,437,120
13Aug 27, 2023 15:4673,67847,015,27325,242,0002,019,0002,441,216
14Aug 27, 2023 15:4673,68648,843,81827,264,00002,449,408
15Apr 3, 2023 22:1973,68652,825,04126,255,0001,009,0002,527,232
16Apr 3, 2023 22:1973,74355,320,25726,275,0001,010,0002,445,312
17Apr 3, 2023 22:1973,80546,785,34226,297,0001,011,0002,514,944
18Apr 3, 2023 22:1973,83845,191,31526,309,0001,011,0002,265,088
19Apr 3, 2023 22:1974,97993,978,50527,742,24302,293,760
20Apr 3, 2023 22:1975,03090,980,30327,761,20302,289,664
21Aug 27, 2023 15:4675,24483,527,41527,840,34002,297,856
22Aug 27, 2023 15:4675,24588,627,54027,840,81702,293,760
23Aug 27, 2023 15:4675,53873,861,96627,949,17202,293,760
24Apr 3, 2023 22:1975,90186,868,60828,083,37302,297,856