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 listSep 3, 2024 16:39AnSaAnSaScore: 71,973Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2024 16:3971,36547,515,94625,390,0001,015,0002,277,376
2Sep 3, 2024 16:3971,53849,382,80924,433,0002,036,0002,273,280
3Sep 3, 2024 16:3971,74654,628,84825,525,0001,021,0002,277,376
4Sep 3, 2024 16:3971,75149,688,09425,527,0001,021,0002,523,136
5Sep 3, 2024 16:3971,75449,097,74725,528,0001,021,0002,273,280
6Sep 3, 2024 16:3971,84149,241,28625,559,0001,022,0002,265,088
7Sep 3, 2024 16:3971,86255,597,37224,544,0002,045,0002,260,992
8Sep 3, 2024 16:3971,89559,528,85324,555,0002,046,0002,273,280
9Sep 3, 2024 16:3971,93851,438,40725,594,0001,023,0002,277,376
10Sep 3, 2024 16:3971,97358,327,25823,558,0003,072,0002,277,376
11Sep 3, 2024 16:3972,00851,687,68325,619,0001,024,0002,527,232
12Sep 3, 2024 16:3972,04155,994,50226,655,00002,260,992
13Sep 3, 2024 16:3972,07051,675,12224,615,0002,051,0002,273,280
14Sep 3, 2024 16:3972,12257,459,34826,685,00002,277,376
15Sep 3, 2024 16:3972,44952,954,67724,821,0001,985,0002,519,040
16Sep 3, 2024 16:3972,47353,994,12823,836,0002,979,0002,273,280
17Sep 3, 2024 16:3972,50053,807,86424,838,0001,987,0002,277,376
18Sep 3, 2024 16:3972,53055,463,85624,849,0001,987,0002,277,376