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 listApr 11, 2025 14:45Chandrasekaran AkashChandrasekaran AkashScore: 70,514Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2025 05:4270,28951,953,02824,007,0002,000,0002,449,408
2Apr 11, 2025 05:4270,28952,714,83625,007,0001,000,0002,531,328
3Apr 11, 2025 05:4070,36248,166,76825,033,0001,001,0002,449,408
4Apr 11, 2025 05:4070,38147,165,34924,038,0002,003,0002,269,184
5Apr 11, 2025 14:4570,38650,551,97824,040,0002,003,0002,269,184
6Apr 11, 2025 05:4270,43050,022,32525,057,0001,002,0002,531,328
7Apr 11, 2025 05:4270,45748,157,14724,064,0002,005,0002,449,408
8Apr 11, 2025 05:4270,51449,351,20325,087,0001,003,0002,531,328
9Apr 11, 2025 14:4570,52249,756,41525,090,0001,003,0002,269,184
10Apr 11, 2025 05:4270,63854,250,65524,126,0002,010,0002,531,328
11Apr 11, 2025 05:4270,74651,277,71125,170,0001,006,0002,445,312
12Apr 11, 2025 05:4270,78149,075,01025,182,0001,007,0002,269,184
13Apr 11, 2025 05:4070,83551,398,67425,201,0001,008,0002,269,184
14Apr 11, 2025 05:4270,84151,161,18025,203,0001,008,0002,449,408
15Apr 11, 2025 14:4571,04648,457,25426,287,00002,531,328