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 listAug 31, 2024 21:56Yuriy LyfenkoYuriy LyfenkoScore: 59,384Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2024 21:5659,173540,455,47419,904,0001,990,0002,269,184
2Aug 31, 2024 21:5759,192548,055,30219,910,0001,991,0002,527,232
3Nov 19, 2025 18:0259,197546,547,92819,912,0001,991,0002,527,232
4Aug 31, 2024 21:5759,246548,340,81119,929,0001,992,0002,531,328
5Aug 31, 2024 21:5759,257542,070,98519,932,0001,993,0002,269,184
6Aug 31, 2024 21:5659,265543,684,54419,935,0001,993,0002,531,328
7Aug 31, 2024 21:5759,268546,636,35819,936,0001,993,0002,531,328
8Aug 31, 2024 21:5759,270547,432,01019,937,0001,993,0002,437,120
9Nov 19, 2025 18:0259,276545,574,73519,939,0001,993,0002,527,232
10Aug 31, 2024 21:5659,305543,914,24319,949,0001,994,0002,531,328
11Aug 31, 2024 21:5759,341556,999,91819,960,0001,996,0002,269,184
12Aug 31, 2024 21:5659,343541,916,40019,961,0001,996,0002,269,184
13Aug 31, 2024 21:5659,373544,566,98719,971,0001,997,0002,531,328
14Aug 31, 2024 21:5759,384547,265,67319,975,0001,997,0002,531,328
15Aug 31, 2024 21:5759,389543,591,02919,977,0001,997,0002,269,184
16Aug 31, 2024 21:5759,432542,740,75119,991,0001,999,0002,269,184
17Aug 31, 2024 21:5659,443543,332,21119,995,0001,999,0002,445,312
18Aug 31, 2024 21:5759,446551,483,01519,996,0001,999,0002,531,328
19Aug 31, 2024 21:5659,454544,512,75419,999,0001,999,0002,519,040
20Aug 31, 2024 21:5659,473548,494,42420,958,0001,047,0002,531,328
21Aug 31, 2024 21:5659,473545,077,97420,005,0002,000,0002,445,312
22Nov 19, 2025 18:0259,476542,157,67620,006,0002,000,0002,527,232
23Aug 31, 2024 21:5659,495541,559,96520,012,0002,001,0002,269,184
24Aug 31, 2024 21:5759,500543,287,68921,015,0001,000,0002,441,216
25Aug 31, 2024 21:5659,505544,767,31520,016,0002,001,0002,269,184
26Aug 31, 2024 21:5659,511542,637,65420,018,0002,001,0002,269,184
27Aug 31, 2024 21:5759,586542,098,56820,043,0002,004,0002,531,328