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 18, 2025 01:36Chandrasekaran AkashChandrasekaran AkashScore: 61,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 01:5761,19249,429,32022,641,00002,449,408
2Apr 18, 2025 01:5761,30548,813,29022,683,00002,449,408
3Apr 18, 2025 01:3661,77647,020,61821,864,000993,0002,449,408
4Apr 18, 2025 01:3661,78147,362,63021,866,000993,0002,453,504
5Apr 18, 2025 01:5961,80545,027,79021,874,000994,0002,531,328
6Apr 18, 2025 01:5761,83249,949,63022,878,00002,441,216
7Apr 18, 2025 01:3661,86546,225,24021,895,000995,0002,531,328
8Apr 18, 2025 01:3661,89545,962,62521,906,000995,0002,531,328
9Apr 18, 2025 01:5961,94642,691,24420,927,0001,993,0002,527,232
10Apr 18, 2025 01:3662,01141,113,25920,949,0001,995,0002,531,328
11Apr 18, 2025 01:3662,07653,301,87521,970,000998,0002,531,328
12Apr 18, 2025 01:3662,08946,174,32021,975,000998,0002,437,120
13Apr 18, 2025 01:3662,10842,812,55421,981,000999,0002,531,328
14Apr 18, 2025 01:3662,13245,153,89621,990,000999,0002,445,312
15Apr 18, 2025 01:5964,55148,350,65322,889,000995,0002,445,312