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 02:27Chandrasekaran AkashChandrasekaran AkashScore: 70,965Success
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 04:4869,98447,239,44424,899,000995,0002,445,312
2Apr 11, 2025 04:4870,18154,636,01924,969,000998,0002,449,408
3Apr 11, 2025 02:2670,26247,357,11924,998,000999,0002,531,328
4Apr 11, 2025 04:4870,40351,330,76825,048,0001,001,0002,445,312
5Apr 11, 2025 02:2670,43248,063,48925,058,0001,002,0002,531,328
6Apr 11, 2025 02:2670,45953,188,66025,068,0001,002,0002,449,408
7Apr 11, 2025 04:4870,61150,914,59724,117,0002,009,0002,531,328
8Apr 11, 2025 04:4870,70851,868,83924,150,0002,012,0002,531,328
9Apr 11, 2025 02:5070,71648,115,27025,159,0001,006,0002,531,328
10Apr 11, 2025 02:2670,81453,597,11925,194,0001,007,0002,445,312
11Apr 11, 2025 04:4870,84151,752,15724,195,0002,016,0002,445,312
12Apr 11, 2025 04:4870,86246,383,51725,211,0001,008,0002,531,328
13Apr 11, 2025 04:4870,93549,438,02326,246,00002,449,408
14Apr 11, 2025 02:2670,96549,007,38125,248,0001,009,0002,449,408
15Apr 11, 2025 02:2671,08446,738,64424,278,0002,023,0002,449,408
16Apr 11, 2025 04:4871,13048,965,07424,294,0002,024,0002,445,312
17Apr 11, 2025 02:5071,14949,970,74026,325,00002,449,408
18Apr 11, 2025 02:2671,20054,021,32026,344,00002,531,328
19Apr 11, 2025 02:2671,64153,805,78525,488,0001,019,0002,531,328
20Apr 11, 2025 02:2671,72748,754,46825,519,0001,020,0002,441,216
21Apr 11, 2025 02:5072,12758,241,49226,687,00002,531,328
22Apr 11, 2025 02:2873,76252,147,40125,271,0002,021,0002,531,328
23Apr 11, 2025 02:2874,11450,451,73927,422,00002,531,328
24Apr 11, 2025 02:2874,33851,531,98526,487,0001,018,0002,445,312
25Apr 11, 2025 02:2775,30048,813,94726,866,000995,0002,449,408
26Apr 11, 2025 02:2775,32755,259,01127,871,00002,449,408
27Apr 11, 2025 02:2775,45957,089,26025,926,0001,994,0002,445,312