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 14, 2025 04:08Chandrasekaran AkashChandrasekaran AkashScore: 66,535Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2025 04:2061,81653,930,64321,878,000994,0002,445,312
2Apr 14, 2025 04:2061,83552,957,28721,885,000994,0002,449,408
3Apr 14, 2025 04:2061,88153,480,69620,905,0001,991,0002,441,216
4Apr 14, 2025 04:2061,93245,794,78920,923,0001,992,0002,453,504
5Apr 14, 2025 04:2062,03043,209,21721,954,000997,0002,531,328
6Apr 14, 2025 04:2062,11148,168,97920,983,0001,998,0002,527,232
7Apr 14, 2025 04:2062,12749,608,97521,988,000999,0002,449,408
8Apr 14, 2025 04:2062,12747,052,45020,989,0001,998,0002,531,328
9Apr 14, 2025 04:2062,18647,931,84922,009,0001,000,0002,449,408
10Apr 14, 2025 04:0866,53549,192,82423,593,0001,025,0002,269,184
11Apr 14, 2025 04:0866,75453,932,36623,670,0001,029,0002,531,328
12Apr 14, 2025 04:0867,13848,088,72223,848,000993,0002,527,232
13Apr 14, 2025 04:0867,15751,917,54722,861,0001,987,0002,531,328
14Apr 14, 2025 04:0867,17349,802,58724,854,00002,269,184
15Apr 14, 2025 04:0867,17854,693,73422,868,0001,988,0002,269,184
16Apr 14, 2025 04:0867,18646,988,18823,865,000994,0002,531,328
17Apr 14, 2025 04:0867,20353,175,21722,876,0001,989,0002,531,328
18Apr 14, 2025 04:0867,30552,516,13522,911,0001,992,0002,449,408