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 listDec 3, 2024 09:30A L ManningA L ManningScore: 105,511Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 3, 2024 09:32104,88969,403,42136,819,0001,990,0002,379,776
2Dec 3, 2024 09:30105,01963,769,58536,865,0001,992,0002,371,584
3Dec 3, 2024 09:30105,14665,846,12937,907,000997,0002,285,568
4Dec 3, 2024 09:30105,15963,691,09736,914,0001,995,0002,367,488
5Dec 3, 2024 09:30105,21164,415,14536,932,0001,996,0002,285,568
6Dec 3, 2024 09:32105,25469,012,00536,947,0001,997,0002,285,568
7Dec 3, 2024 09:32105,44970,137,11537,016,0002,000,0002,367,488
8Dec 3, 2024 09:32105,47063,900,73737,023,0002,001,0002,285,568
9Dec 3, 2024 09:32105,50365,814,19537,035,0002,001,0002,379,776
10Dec 3, 2024 09:30105,51167,160,37237,037,0002,002,0002,285,568
11Dec 3, 2024 09:32105,51974,540,39737,040,0002,002,0002,285,568
12Dec 3, 2024 09:32105,58662,762,40737,064,0002,003,0002,371,584
13Dec 3, 2024 09:30106,03266,673,57837,221,0002,011,0002,285,568
14Dec 3, 2024 09:30106,07061,569,95938,240,0001,006,0002,371,584
15Dec 3, 2024 09:30106,22461,931,86439,303,00002,363,392
16Dec 3, 2024 09:30106,33265,779,41639,343,00002,371,584
17Dec 3, 2024 09:32106,39760,756,62438,358,0001,009,0002,285,568
18Dec 3, 2024 09:32110,79567,610,37038,995,0001,999,0002,285,568