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 14:39Yuriy LyfenkoYuriy LyfenkoScore: 121,535Success
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 14:39120,43072,918,93243,547,0001,012,0002,334,720
2Jul 13, 2021 14:39120,44974,024,62042,541,0002,025,0002,330,624
3Jul 13, 2021 14:39120,53270,012,49443,584,0001,013,0002,334,720
4Jul 13, 2021 14:39120,65176,353,86743,627,0001,014,0002,527,232
5Jul 13, 2021 14:39120,69267,651,11243,642,0001,014,0002,527,232
6Jul 13, 2021 14:39121,16574,038,49141,843,0002,988,0002,334,720
7Jul 13, 2021 14:39121,24170,819,42241,869,0002,990,0002,334,720
8Jul 13, 2021 14:39121,53575,018,81241,971,0002,997,0002,334,720
9Jul 13, 2021 14:39122,00870,270,16743,137,0002,006,0002,519,040
10Jul 13, 2021 14:42123,190105,750,81645,580,24802,179,072
11Jul 13, 2021 14:39123,404118,128,23145,659,33602,187,264
12Jul 13, 2021 14:39123,462106,594,19945,680,77802,179,072
13Jul 13, 2021 14:42123,607109,748,82945,734,49902,183,168
14Jul 13, 2021 14:39124,026111,695,04845,889,62502,183,168
15Jul 13, 2021 14:42124,719108,198,53946,146,19302,301,952