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 09:02Chandrasekaran AkashChandrasekaran AkashScore: 61,992Success
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 05:3661,82746,839,73520,887,0001,989,0002,269,184
2Apr 14, 2025 05:3661,83251,150,34120,889,0001,989,0002,449,408
3Apr 14, 2025 05:3661,83249,517,13622,878,00002,531,328
4Apr 14, 2025 04:4261,84351,970,67521,888,000994,0002,531,328
5Apr 14, 2025 05:3661,85148,421,17920,895,0001,990,0002,449,408
6Apr 14, 2025 04:4261,88945,261,98921,859,0001,040,0002,531,328
7Apr 18, 2025 00:3361,93043,315,57221,918,000996,0002,527,232
8Apr 18, 2025 00:3361,93245,155,18820,923,0001,992,0002,449,408
9Apr 14, 2025 05:3661,96541,207,35221,931,000996,0002,269,184
10Apr 14, 2025 05:3661,99246,295,75620,943,0001,994,0002,269,184
11Apr 14, 2025 09:0261,99245,917,88621,940,000997,0002,531,328
12Apr 14, 2025 05:3662,06548,382,90420,968,0001,996,0002,531,328
13Apr 14, 2025 09:0262,10847,558,68121,981,000999,0002,445,312
14Apr 18, 2025 00:3362,11148,595,26721,982,000999,0002,453,504
15Apr 14, 2025 09:0262,11642,242,86021,984,000999,0002,449,408
16Apr 14, 2025 05:3662,23542,968,17021,025,0002,002,0002,531,328
17Apr 14, 2025 04:4262,24643,464,10222,030,0001,001,0002,269,184
18Apr 14, 2025 05:3662,37046,009,19321,071,0002,006,0002,453,504