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 29, 2023 07:17weedgeweedgeScore: 21,340,906Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2023 07:1721,205,5127,919,322,1737,846,039,27502,281,472
2Nov 29, 2023 07:1721,340,9067,952,333,4067,896,135,09002,297,856
3Nov 29, 2023 07:1721,357,8907,964,678,1817,902,419,13402,285,568