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 18, 2025 01:23Chandrasekaran AkashChandrasekaran AkashScore: 61,811Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 01:2361,35149,455,01221,669,0001,031,0002,269,184
2Apr 18, 2025 01:1561,43552,258,99021,698,0001,033,0002,269,184
3Apr 18, 2025 01:2361,69247,945,77120,842,0001,984,0002,531,328
4Apr 18, 2025 01:1561,76554,833,94421,860,000993,0002,531,328
5Apr 18, 2025 01:1561,77046,229,01720,868,0001,987,0002,449,408
6Apr 18, 2025 01:1561,77050,155,69121,862,000993,0002,531,328
7Apr 18, 2025 01:2361,77845,953,33120,871,0001,987,0002,441,216
8Apr 18, 2025 01:2361,79551,765,77420,876,0001,988,0002,449,408
9Apr 18, 2025 01:1561,80351,569,41221,873,000994,0002,449,408
10Apr 18, 2025 01:1561,81152,960,52021,876,000994,0002,441,216
11Apr 18, 2025 01:2361,81147,568,91021,876,000994,0002,441,216
12Apr 18, 2025 01:1561,85951,258,48321,893,000995,0002,441,216
13Apr 18, 2025 01:2361,93550,053,36921,920,000996,0002,445,312
14Apr 18, 2025 01:1561,93845,657,80221,921,000996,0002,531,328
15Apr 18, 2025 01:2361,94147,669,31821,922,000996,0002,531,328
16Apr 18, 2025 01:1561,96844,731,70521,932,000996,0002,531,328
17Apr 18, 2025 01:2362,19746,867,21121,012,0002,001,0002,531,328
18Apr 18, 2025 01:2362,30347,210,55321,048,0002,004,0002,269,184