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 listJan 16, 2025 23:37Ian MckibbenIan MckibbenScore: 115,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 23:41113,25463,664,72639,909,0001,995,0002,265,088
2Jan 16, 2025 23:41113,28664,824,02939,920,0001,996,0002,269,184
3Jan 17, 2025 00:38113,42264,799,60339,968,0001,998,0002,289,664
4Jan 16, 2025 23:41113,44168,931,09239,975,0001,998,0002,289,664
5Jan 16, 2025 23:41113,54664,522,62540,012,0002,000,0002,289,664
6Jan 17, 2025 00:38113,71466,469,64140,071,0002,003,0002,289,664
7Jan 16, 2025 23:41113,87066,634,18242,132,00002,289,664
8Jan 16, 2025 23:41114,39763,830,33740,312,0002,015,0002,289,664
9Jan 16, 2025 23:41114,44368,884,96140,328,0002,016,0002,289,664
10Jan 16, 2025 23:41114,73065,934,77142,450,00002,289,664
11Jan 16, 2025 23:41115,07676,587,72041,565,0001,013,0002,273,280
12Jan 17, 2025 00:38115,78171,600,86541,843,000996,0002,289,664
13Jan 16, 2025 23:37128,23569,728,75746,438,0001,009,0002,289,664
14Jan 16, 2025 23:37128,45170,154,37846,516,0001,011,0002,289,664
15Jan 16, 2025 23:37128,45470,705,52346,517,0001,011,0002,523,136
16Jan 16, 2025 23:37128,60875,541,41746,573,0001,012,0002,289,664
17Jan 16, 2025 23:37128,66576,780,87946,594,0001,012,0002,269,184
18Jan 16, 2025 23:37128,87374,909,88646,669,0001,014,0002,273,280
19Jan 16, 2025 23:37129,37073,471,63545,873,0001,994,0002,289,664
20Jan 16, 2025 23:37129,47676,346,09145,910,0001,996,0002,269,184
21Jan 16, 2025 23:37130,03571,184,83646,109,0002,004,0002,273,280