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 listSep 10, 2021 13:58Andrey TsvetkovAndrey TsvetkovScore: 88,654Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2021 13:5887,32758,849,42730,292,0002,019,0002,310,144
2Sep 10, 2021 13:5887,68159,422,83731,429,0001,013,0002,314,240
3Sep 10, 2021 13:5887,75956,450,06130,442,0002,029,0002,326,528
4Sep 10, 2021 13:5887,77354,957,58531,462,0001,014,0002,322,432
5Sep 10, 2021 13:5887,83255,819,45630,467,0002,031,0002,318,336
6Sep 10, 2021 13:5887,87656,212,51531,498,0001,016,0002,318,336
7Sep 10, 2021 13:5888,32764,742,70931,660,0001,021,0002,334,720
8Sep 10, 2021 13:5888,65465,013,58129,820,0002,982,0002,318,336
9Sep 10, 2021 13:5888,73558,009,81230,843,0001,989,0002,326,528
10Sep 10, 2021 13:5890,74097,100,90933,573,86102,260,992
11Sep 10, 2021 14:0090,77892,954,15933,587,67902,256,896
12Sep 10, 2021 13:5891,25290,483,10433,763,31702,256,896
13Sep 10, 2021 14:0091,64695,235,04533,909,05302,248,704
14Sep 10, 2021 13:5891,72097,125,06833,936,50502,260,992
15Sep 10, 2021 14:0091,768101,902,94233,954,07402,260,992