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 20, 2023 15:21AdrKAdrKScore: 21,214,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2023 15:2121,125,4357,882,637,8517,816,411,11402,285,568
2Nov 20, 2023 15:2121,214,0287,924,142,6287,849,190,18202,289,664
3Nov 20, 2023 15:2121,353,0227,958,125,6497,900,618,08602,285,568