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 29, 2023 19:07mmalczakmmalczakScore: 69,511Success
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 18:2768,88652,193,47624,469,0001,019,0002,273,280
2Sep 29, 2023 19:0769,07046,659,11325,556,00002,441,216
3Sep 29, 2023 19:0769,13248,379,86024,556,0001,023,0002,535,424
4Sep 29, 2023 19:0769,16846,340,13825,592,00002,535,424
5Sep 28, 2023 18:2769,21952,220,34625,611,00002,428,928
6Sep 28, 2023 18:2769,26553,100,96724,603,0001,025,0002,433,024
7Sep 28, 2023 18:2769,27051,382,01625,630,00002,535,424
8Sep 28, 2023 18:2769,33050,573,38325,652,00002,424,832
9Sep 29, 2023 19:0769,37855,979,53224,644,0001,026,0002,273,280
10Sep 29, 2023 19:0769,46850,475,23925,703,00002,428,928
11Sep 29, 2023 19:0769,48152,310,94525,708,00002,424,832
12Sep 29, 2023 19:0769,48951,202,42625,711,00002,535,424
13Sep 28, 2023 18:2769,51151,145,76425,719,00002,428,928
14Sep 29, 2023 19:0769,87053,997,78725,852,00002,535,424
15Sep 29, 2023 19:0769,88449,751,60824,863,000994,0002,433,024
16Sep 28, 2023 18:2769,88951,548,19024,865,000994,0002,424,832
17Sep 28, 2023 18:2769,90050,049,94224,869,000994,0002,437,120
18Sep 28, 2023 18:2769,90854,345,60425,866,00002,514,944
19Sep 28, 2023 18:2772,01782,894,94626,646,34402,289,664
20Sep 28, 2023 18:2772,35985,016,36826,772,96402,281,472
21Sep 29, 2023 19:0772,40688,275,51126,790,34502,289,664
22Sep 29, 2023 19:0772,45688,456,71826,808,57402,281,472
23Sep 28, 2023 18:2772,66781,474,73026,886,95502,281,472
24Sep 29, 2023 19:0772,82989,411,18126,946,83802,285,568