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 21, 2023 09:06AdrKAdrKScore: 2,113,896Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 21, 2023 09:061,618,709657,629,260598,922,46602,273,280
2Nov 21, 2023 09:062,113,896833,675,050782,141,66102,277,376
3Nov 21, 2023 09:062,268,020898,261,148839,167,29502,293,760