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 listDec 12, 2023 05:00Andrey LikhachevAndrey LikhachevScore: 206,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2023 05:00204,509136,815,20675,668,51402,232,320
2Dec 12, 2023 05:00206,390141,604,40276,364,30202,244,608
3Dec 12, 2023 05:00206,943145,817,43976,569,00402,244,608