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:39Yuriy LyfenkoYuriy LyfenkoScore: 107,797Success
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:39106,76563,346,47538,491,0001,012,0002,334,720
2Jul 13, 2021 13:39106,90561,988,32837,527,0002,028,0002,523,136
3Jul 13, 2021 13:39107,37865,997,77038,737,000993,0002,519,040
4Jul 13, 2021 13:39107,69267,135,90637,854,0001,992,0002,334,720
5Jul 13, 2021 13:39107,69269,180,65337,854,0001,992,0002,334,720
6Jul 13, 2021 13:39107,70367,885,73936,862,0002,988,0002,523,136
7Jul 13, 2021 13:39107,72466,191,37337,866,0001,992,0002,514,944
8Jul 13, 2021 13:39107,79768,435,92237,891,0001,994,0002,334,720
9Jul 13, 2021 13:39107,85962,774,22336,915,0002,993,0002,334,720
10Jul 13, 2021 13:39109,340101,756,68840,455,90402,183,168
11Jul 13, 2021 13:39109,442100,691,97440,493,59302,174,976
12Jul 13, 2021 13:45109,742123,936,90740,604,54902,183,168
13Jul 13, 2021 13:39109,744113,775,71440,605,13402,183,168
14Jul 13, 2021 13:45109,745111,949,38940,605,52002,306,048
15Jul 13, 2021 13:45109,918105,529,43940,669,60202,174,976