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 09:28AdrKAdrKScore: 21,386,995Success
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 09:2821,317,0517,949,045,2257,887,308,76802,293,760
2Nov 17, 2023 09:2821,386,9957,983,618,1747,913,188,08802,285,568
3Nov 17, 2023 09:2821,448,8948,001,763,1377,936,090,64302,285,568