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 13:19Yuriy LyfenkoYuriy LyfenkoScore: 107,724Success
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 13:19106,93563,120,86038,552,0001,014,0002,519,040
2Jul 13, 2021 13:19107,07067,359,17738,601,0001,015,0002,519,040
3Jul 13, 2021 13:19107,13265,366,35438,623,0001,016,0002,334,720
4Jul 13, 2021 13:19107,16265,271,75237,617,0002,033,0002,334,720
5Jul 13, 2021 13:19107,19765,227,18437,629,0002,034,0002,334,720
6Jul 13, 2021 13:19107,20567,727,71738,649,0001,017,0002,514,944
7Jul 13, 2021 13:19107,67666,347,91436,852,0002,988,0002,383,872
8Jul 13, 2021 13:19107,72464,858,81536,869,0002,989,0002,334,720
9Jul 13, 2021 13:19107,80866,744,59537,895,0001,994,0002,334,720
10Jul 13, 2021 13:19109,61897,687,09140,558,62402,179,072
11Jul 13, 2021 13:21109,723121,436,08140,597,33902,179,072
12Jul 13, 2021 13:21109,832107,773,53040,637,66902,187,264
13Jul 13, 2021 13:19109,954102,270,69840,683,02402,179,072
14Jul 13, 2021 13:21110,157107,384,62440,758,11802,187,264
15Jul 13, 2021 13:19110,37197,314,40040,837,37402,179,072