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:37AnSaAnSaScore: 72,500Success
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:3771,96556,285,93325,603,0001,024,0002,273,280
2Sep 3, 2024 16:3772,08658,341,37524,621,0002,051,0002,531,328
3Sep 3, 2024 16:3772,09251,823,07124,623,0002,051,0002,273,280
4Sep 3, 2024 16:3772,11155,086,83125,655,0001,026,0002,277,376
5Sep 3, 2024 16:3772,13553,168,73626,690,00002,277,376
6Sep 3, 2024 16:3772,15452,665,98425,671,0001,026,0002,527,232
7Sep 3, 2024 16:3772,16854,057,18725,675,0001,027,0002,277,376
8Sep 3, 2024 16:3772,31652,342,99725,766,000991,0002,277,376
9Sep 3, 2024 16:3772,49756,776,62723,844,0002,980,0002,277,376
10Sep 3, 2024 16:3772,50051,701,23524,838,0001,987,0002,277,376
11Sep 3, 2024 16:3772,54156,722,71223,858,0002,982,0002,277,376
12Sep 3, 2024 16:3772,54654,061,05026,842,00002,260,992
13Sep 3, 2024 16:3772,54954,218,22623,861,0002,982,0002,273,280
14Sep 3, 2024 16:3772,57853,105,83925,860,000994,0002,277,376
15Sep 3, 2024 16:3772,58653,191,63922,879,0003,978,0002,519,040
16Sep 3, 2024 16:3772,61157,700,76324,876,0001,990,0002,265,088
17Sep 3, 2024 16:3772,61149,887,19823,881,0002,985,0002,277,376
18Sep 3, 2024 16:3772,75755,084,74425,923,000997,0002,510,848