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 9, 2023 16:55Franek KortaFranek KortaScore: 113,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 9, 2023 16:55109,24363,402,42438,399,0002,021,0002,531,328
2Apr 9, 2023 16:55109,38664,116,46738,450,0002,023,0002,531,328
3Apr 9, 2023 16:55110,54674,179,14039,905,000997,0002,269,184
4Apr 9, 2023 16:56110,73866,819,98139,974,000999,0002,441,216
5Apr 9, 2023 16:56111,07858,375,61740,097,0001,002,0002,269,184
6Apr 9, 2023 16:56111,28163,471,91540,170,0001,004,0002,437,120
7Apr 9, 2023 16:56111,33564,281,07139,185,0002,009,0002,437,120
8Apr 9, 2023 16:56111,70562,874,70940,323,0001,008,0002,531,328
9Apr 9, 2023 16:56112,30570,517,53841,553,00002,433,024
10Apr 9, 2023 16:56113,04367,782,17041,826,00002,531,328
11Apr 9, 2023 16:56113,15473,072,09539,874,0001,993,0002,441,216
12Apr 9, 2023 16:56113,19567,510,29041,882,00002,527,232
13Apr 9, 2023 16:55113,45165,527,99540,978,000999,0002,437,120
14Apr 9, 2023 16:55113,78166,710,14741,097,0001,002,0002,531,328
15Apr 9, 2023 16:55113,80062,673,82440,101,0002,005,0002,269,184
16Apr 9, 2023 16:55114,27372,680,33241,275,0001,006,0002,437,120
17Apr 9, 2023 16:55115,05166,760,71442,569,00002,531,328
18Apr 9, 2023 16:55116,06572,600,62341,946,000998,0002,445,312
19Apr 9, 2023 16:56119,344115,652,03444,157,13602,170,880
20Apr 9, 2023 16:55120,701106,546,30544,659,26602,179,072
21Apr 9, 2023 16:56122,323107,236,10945,259,67202,293,760
22Apr 9, 2023 16:55122,569106,335,02645,350,51902,297,856
23Apr 9, 2023 16:55123,806100,994,09245,808,05902,179,072
24Apr 9, 2023 16:56124,242118,294,99745,969,46002,293,760