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 11, 2025 01:38Chandrasekaran AkashChandrasekaran AkashScore: 71,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2025 01:3871,07648,457,49025,287,0001,011,0002,449,408
2Apr 11, 2025 01:4171,08444,888,76326,301,00002,531,328
3Apr 11, 2025 01:4171,11448,827,74025,300,0001,012,0002,441,216
4Apr 11, 2025 01:3871,11945,431,13525,302,0001,012,0002,531,328
5Apr 11, 2025 01:4171,19249,198,79825,328,0001,013,0002,445,312
6Apr 11, 2025 01:3871,19550,660,80425,329,0001,013,0002,531,328
7Apr 11, 2025 02:1071,20352,534,30626,345,00002,531,328
8Apr 11, 2025 01:4171,23046,819,18726,355,00002,531,328
9Apr 11, 2025 01:4171,25949,168,13825,352,0001,014,0002,269,184
10Apr 11, 2025 01:3871,30345,444,70026,382,00002,269,184
11Apr 11, 2025 01:4171,33248,485,36326,393,00002,437,120
12Apr 11, 2025 02:1071,40053,051,99926,418,00002,449,408
13Apr 11, 2025 01:3871,43543,860,36926,431,00002,527,232
14Apr 11, 2025 01:4171,51149,566,45925,442,0001,017,0002,441,216
15Apr 11, 2025 01:4171,53547,383,33826,468,00002,449,408
16Apr 11, 2025 01:3871,55752,029,47526,476,00002,449,408
17Apr 11, 2025 01:4171,55949,229,35726,477,00002,531,328
18Apr 11, 2025 01:3871,56850,386,44526,480,00002,441,216
19Apr 11, 2025 01:3871,58953,802,70726,488,00002,531,328
20Apr 11, 2025 01:3871,65747,701,39325,494,0001,019,0002,441,216
21Apr 11, 2025 02:1072,94148,088,85125,989,000999,0002,445,312