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:23Chandrasekaran AkashChandrasekaran AkashScore: 62,000Success
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:2461,68451,445,32221,831,000992,0002,449,408
2Apr 14, 2025 04:2261,80351,927,69020,879,0001,988,0002,445,312
3Apr 14, 2025 04:2261,82445,511,93421,881,000994,0002,531,328
4Apr 14, 2025 04:2261,84345,934,27820,893,0001,989,0002,449,408
5Apr 14, 2025 04:2461,85747,071,38520,897,0001,990,0002,441,216
6Apr 14, 2025 04:2461,88449,791,40521,902,000995,0002,449,408
7Apr 14, 2025 04:2461,90841,979,89721,911,000995,0002,531,328
8Apr 14, 2025 04:2261,94150,577,82122,918,00002,527,232
9Apr 14, 2025 04:2461,94351,418,08221,923,000996,0002,531,328
10Apr 14, 2025 04:2261,94646,809,10720,927,0001,993,0002,445,312
11Apr 14, 2025 04:2262,00044,307,87021,943,000997,0002,531,328
12Apr 14, 2025 04:2462,00051,240,34120,946,0001,994,0002,269,184
13Apr 14, 2025 04:2262,09546,604,75021,977,000998,0002,531,328
14Apr 14, 2025 04:2262,09548,534,63621,977,000998,0002,445,312
15Apr 14, 2025 04:2462,09551,247,87121,977,000998,0002,269,184
16Apr 14, 2025 04:2262,16245,582,20522,000,0001,000,0002,441,216
17Apr 14, 2025 04:2462,17846,920,04122,006,0001,000,0002,445,312
18Apr 14, 2025 04:2462,24347,888,29022,029,0001,001,0002,531,328
19Apr 14, 2025 04:2362,99247,200,16221,281,0002,026,0002,531,328
20Apr 14, 2025 04:2363,08942,355,56422,329,0001,014,0002,527,232
21Apr 14, 2025 04:2363,10546,938,96323,349,00002,449,408