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 16, 2023 12:02mmalczakmmalczakScore: 116,424Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 16, 2023 11:4999,288103,657,25736,736,73002,256,896
2Sep 16, 2023 11:4999,566115,164,24136,839,40402,273,280
3Sep 16, 2023 12:0299,568105,950,14636,840,27002,277,376
4Sep 16, 2023 12:02100,248107,501,57437,091,90302,281,472
5Sep 16, 2023 11:49100,706117,184,15437,261,26902,269,184
6Sep 16, 2023 12:02100,736104,515,63037,272,13802,269,184
7Sep 16, 2023 11:49114,94363,976,69440,504,0002,025,0002,527,232
8Sep 16, 2023 11:49115,27071,634,28641,635,0001,015,0002,289,664
9Sep 16, 2023 12:02115,27670,869,01541,637,0001,015,0002,277,376
10Sep 16, 2023 11:49115,40572,956,42141,684,0001,016,0002,289,664
11Sep 16, 2023 11:49115,78470,843,98840,848,0001,992,0002,289,664
12Sep 16, 2023 12:02116,41668,132,47542,073,0001,001,0002,289,664
13Sep 16, 2023 12:02116,42469,809,48041,074,0002,003,0002,273,280
14Sep 16, 2023 11:49116,43866,431,25841,079,0002,003,0002,289,664
15Sep 16, 2023 12:02116,53565,577,67541,113,0002,005,0002,281,472
16Sep 16, 2023 12:02116,55765,162,47541,121,0002,005,0002,273,280
17Sep 16, 2023 11:49116,63266,477,08841,147,0002,007,0002,289,664
18Sep 16, 2023 11:49116,92265,855,72441,249,0002,012,0002,289,664
19Sep 16, 2023 12:02116,99265,654,09541,274,0002,013,0002,289,664
20Sep 16, 2023 12:02117,05972,985,85141,298,0002,014,0002,273,280
21Sep 16, 2023 12:02117,19571,071,74041,346,0002,016,0002,273,280
22Sep 16, 2023 11:49117,25765,449,64942,377,0001,008,0002,273,280
23Sep 16, 2023 11:49117,42767,103,68541,428,0002,020,0002,289,664
24Sep 16, 2023 12:02117,75964,531,67342,558,0001,013,0002,289,664