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 listNov 17, 2023 17:06AdrKAdrKScore: 21,343,646Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2023 17:0621,331,7927,976,625,1517,892,762,91502,289,664
2Nov 17, 2023 17:0621,343,6467,962,828,2777,897,149,15402,293,760
3Nov 17, 2023 17:0621,346,6717,955,307,9597,898,268,32202,285,568