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:17Aniruddha DebAniruddha DebScore: 67,749Success
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:1967,48650,792,36323,972,000998,0002,437,120
2Mar 17, 2025 23:1967,53854,157,50123,990,000999,0002,531,328
3Mar 17, 2025 23:1967,56247,287,60823,999,000999,0002,531,328
4Mar 17, 2025 23:1967,59544,284,74524,010,0001,000,0002,531,328
5Mar 17, 2025 23:1967,59555,380,84724,010,0001,000,0002,433,024
6Mar 17, 2025 23:1767,63552,583,52424,024,0001,001,0002,420,736
7Mar 17, 2025 23:1967,64947,275,91524,029,0001,001,0002,531,328
8Mar 17, 2025 23:1967,67647,740,03524,039,0001,001,0002,416,640
9Mar 17, 2025 23:1967,68147,245,55823,039,0002,003,0002,531,328
10Mar 17, 2025 23:1767,68943,007,63524,044,0001,001,0002,531,328
11Mar 17, 2025 23:1967,70850,690,92724,050,0001,002,0002,269,184
12Mar 17, 2025 23:1967,71649,385,53224,053,0001,002,0002,269,184
13Mar 17, 2025 23:1967,73054,117,11423,056,0002,004,0002,531,328
14Mar 17, 2025 23:1967,74946,102,29724,065,0001,002,0002,531,328
15Mar 17, 2025 23:1767,75447,929,81124,067,0001,002,0002,428,928
16Mar 17, 2025 23:1767,77652,261,00624,074,0001,003,0002,531,328
17Mar 17, 2025 23:1967,79550,250,75524,081,0001,003,0002,420,736
18Mar 17, 2025 23:1967,80551,800,80323,081,0002,007,0002,531,328
19Mar 17, 2025 23:1767,80550,486,54124,085,0001,003,0002,531,328
20Mar 17, 2025 23:1967,81152,829,69124,087,0001,003,0002,416,640
21Mar 17, 2025 23:1767,83254,303,18224,095,0001,003,0002,531,328
22Mar 17, 2025 23:1767,88452,010,86224,113,0001,004,0002,269,184
23Mar 17, 2025 23:1967,88948,762,38924,115,0001,004,0002,428,928
24Mar 17, 2025 23:1767,90844,628,01924,121,0001,005,0002,531,328
25Mar 17, 2025 23:1967,91148,321,17823,117,0002,010,0002,424,832
26Mar 17, 2025 23:1967,91648,701,93924,124,0001,005,0002,531,328
27Mar 17, 2025 23:1768,12250,424,50923,189,0002,016,0002,531,328