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 listSep 28, 2023 16:42apuxbtapuxbtScore: 76,870Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2023 16:4376,07356,341,40126,137,0002,010,0002,523,136
2Sep 28, 2023 16:4276,24152,068,34425,187,0003,022,0002,285,568
3Sep 28, 2023 16:4376,24354,320,35827,203,0001,007,0002,514,944
4Sep 28, 2023 16:4276,26853,732,80526,204,0002,015,0002,523,136
5Sep 28, 2023 16:4376,31449,649,79426,220,0002,016,0002,514,944
6Sep 28, 2023 16:4276,35149,120,19726,233,0002,017,0002,285,568
7Sep 28, 2023 16:4276,35949,692,02227,244,0001,009,0002,531,328
8Sep 28, 2023 16:4376,39749,480,13926,248,0002,019,0002,273,280
9Sep 28, 2023 16:4376,42253,511,42426,257,0002,019,0002,285,568
10Sep 28, 2023 16:4376,53853,759,80227,308,0001,011,0002,285,568
11Sep 28, 2023 16:4276,61154,312,52726,322,0002,024,0002,363,392
12Sep 28, 2023 16:4276,73856,407,60025,351,0003,042,0002,285,568
13Sep 28, 2023 16:4376,81653,020,20726,392,0002,030,0002,531,328
14Sep 28, 2023 16:4276,87055,330,53426,411,0002,031,0002,285,568
15Sep 28, 2023 16:4376,92755,733,99127,447,0001,016,0002,285,568
16Sep 28, 2023 16:4376,93048,765,41227,448,0001,016,0002,285,568
17Sep 28, 2023 16:4277,00851,829,46927,476,0001,017,0002,285,568
18Sep 28, 2023 16:4277,11650,400,30328,533,00002,523,136
19Sep 28, 2023 16:4383,844110,226,42531,022,39502,265,088
20Sep 28, 2023 16:4283,864107,876,03031,029,74702,273,280
21Sep 28, 2023 16:4384,079116,121,25831,109,25602,273,280
22Sep 28, 2023 16:4384,26893,937,47831,179,20302,281,472
23Sep 28, 2023 16:4284,426105,315,03531,237,55602,269,184
24Sep 28, 2023 16:4384,429105,234,80731,238,83102,281,472
25Sep 28, 2023 16:4384,54799,332,96231,282,34502,269,184
26Sep 28, 2023 16:4284,590104,701,10131,298,21602,269,184
27Sep 28, 2023 16:4384,706110,166,71431,341,33302,269,184