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 listMar 17, 2025 23:38Aniruddha DebAniruddha DebScore: 67,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 17, 2025 23:3867,41449,052,72023,946,000997,0002,531,328
2Mar 17, 2025 23:3867,48146,862,07722,971,0001,997,0002,531,328
3Mar 17, 2025 23:3867,52246,150,71623,984,000999,0002,531,328
4Mar 17, 2025 23:3867,56848,354,18424,000,0001,000,0002,531,328
5Mar 17, 2025 23:3867,64644,988,38224,028,0001,001,0002,531,328
6Mar 17, 2025 23:3867,65953,356,30923,032,0002,002,0002,531,328
7Mar 17, 2025 23:3867,72756,241,58124,057,0001,002,0002,433,024
8Mar 17, 2025 23:3867,73849,130,64524,061,0001,002,0002,416,640
9Mar 17, 2025 23:3867,74347,989,94523,060,0002,005,0002,510,848
10Mar 17, 2025 23:3867,77047,948,72324,072,0001,003,0002,420,736
11Mar 17, 2025 23:3867,77845,366,86823,072,0002,006,0002,424,832
12Mar 17, 2025 23:3867,85948,081,94824,104,0001,004,0002,531,328
13Mar 17, 2025 23:3867,86847,068,70324,107,0001,004,0002,428,928
14Mar 17, 2025 23:3867,88149,238,67624,112,0001,004,0002,531,328
15Mar 17, 2025 23:3867,88943,648,68024,115,0001,004,0002,420,736
16Mar 17, 2025 23:3867,88949,058,27624,115,0001,004,0002,531,328
17Mar 17, 2025 23:3867,95947,012,47523,134,0002,011,0002,519,040
18Mar 17, 2025 23:3867,96245,288,59524,141,0001,005,0002,420,736
19Mar 17, 2025 23:3867,98456,968,32224,148,0001,006,0002,531,328
20Mar 17, 2025 23:3868,05954,423,65824,175,0001,007,0002,531,328
21Mar 17, 2025 23:3868,22247,121,37324,233,0001,009,0002,428,928