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 16:51Yuriy LyfenkoYuriy LyfenkoScore: 107,208Success
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 16:35106,36264,323,93336,327,0003,027,0002,527,232
2Jul 13, 2021 16:35106,59561,915,27837,418,0002,022,0002,351,104
3Jul 13, 2021 16:35106,64362,538,53438,447,0001,011,0002,514,944
4Jul 13, 2021 16:51106,65767,551,15036,428,0003,035,0002,519,040
5Jul 13, 2021 16:51106,66563,314,74638,455,0001,011,0002,527,232
6Jul 13, 2021 16:35106,68462,921,03938,461,0001,012,0002,334,720
7Jul 13, 2021 16:51106,69262,017,26037,452,0002,024,0002,514,944
8Jul 13, 2021 16:51106,72759,606,65637,464,0002,025,0002,330,624
9Jul 13, 2021 16:35106,73064,650,28538,478,0001,012,0002,334,720
10Jul 13, 2021 16:51106,86265,174,65538,526,0001,013,0002,531,328
11Jul 13, 2021 16:35106,93864,558,16237,538,0002,029,0002,330,624
12Jul 13, 2021 16:51107,10065,217,96937,595,0002,032,0002,334,720
13Jul 13, 2021 16:35107,20869,379,08337,633,0002,034,0002,523,136
14Jul 13, 2021 16:35107,21470,230,50237,635,0002,034,0002,322,432
15Jul 13, 2021 16:51107,21469,187,87237,635,0002,034,0002,527,232
16Jul 13, 2021 16:35107,33271,909,43138,695,0001,018,0002,514,944
17Jul 13, 2021 16:35109,31096,727,73540,444,87902,183,168
18Jul 13, 2021 16:35109,330121,124,22740,452,16302,179,072
19Jul 13, 2021 16:51109,490102,710,41840,511,14402,187,264
20Jul 13, 2021 16:51109,57997,800,18040,544,26302,191,360
21Jul 13, 2021 16:51109,705101,390,79640,590,79702,187,264
22Jul 13, 2021 16:35109,835106,244,48540,638,95602,187,264
23Jul 13, 2021 16:51713,7921,681,413,74439,511,000224,592,000239,689,728
24Jul 13, 2021 16:51844,5052,041,860,99942,990,000269,477,000295,084,032