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:16Yuriy LyfenkoYuriy LyfenkoScore: 96,868Success
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 17:1695,64154,553,63933,365,0002,022,0002,531,328
2Jul 13, 2021 17:1695,65460,123,01632,359,0003,033,0002,531,328
3Jul 13, 2021 17:1695,76261,079,84333,408,0002,024,0002,334,720
4Jul 13, 2021 17:1695,80057,951,50934,434,0001,012,0002,334,720
5Jul 13, 2021 17:1695,83060,722,01933,431,0002,026,0002,392,064
6Jul 13, 2021 17:1696,06856,108,94034,530,0001,015,0002,514,944
7Jul 13, 2021 17:1696,09255,645,24634,539,0001,015,0002,326,528
8Jul 13, 2021 17:1696,86861,522,12132,855,0002,986,0002,334,720
9Jul 13, 2021 17:1697,01662,505,20732,905,0002,991,0002,334,720
10Jul 13, 2021 17:1597,867103,704,02236,210,78902,187,264
11Jul 13, 2021 17:1698,184108,387,75136,328,20802,183,168
12Jul 13, 2021 17:1598,480100,554,17336,437,42302,187,264
13Jul 13, 2021 17:1698,48596,712,72336,439,52802,179,072
14Jul 13, 2021 17:1599,06591,355,63536,653,88902,179,072
15Jul 13, 2021 17:1699,096100,504,48236,665,68502,191,360