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 listDec 24, 2023 03:30Kenneth MaplesKenneth MaplesScore: 75,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 03:3075,38954,261,64325,902,0001,992,0002,498,560
2Dec 24, 2023 03:3775,58450,845,20825,969,0001,997,0002,502,656
3Dec 24, 2023 03:3075,60550,802,76925,976,0001,998,0002,498,560
4Dec 24, 2023 03:3075,61152,337,63226,977,000999,0002,285,568
5Dec 24, 2023 03:3775,61651,812,08625,980,0001,998,0002,494,464
6Dec 24, 2023 03:3075,61957,181,15525,981,0001,998,0002,285,568
7Dec 24, 2023 03:3775,62454,956,11426,982,000999,0002,285,568
8Dec 24, 2023 03:3775,62751,090,31225,984,0001,998,0002,502,656
9Dec 24, 2023 03:3775,83251,750,76126,054,0002,004,0002,285,568
10Dec 24, 2023 03:3075,87352,238,39726,068,0002,005,0002,506,752
11Dec 24, 2023 03:3075,89555,057,40026,076,0002,005,0002,285,568
12Dec 24, 2023 03:3075,92250,683,08626,085,0002,006,0002,502,656
13Dec 24, 2023 03:3775,98650,784,54026,107,0002,008,0002,285,568
14Dec 24, 2023 03:3076,00051,686,17026,112,0002,008,0002,502,656
15Dec 24, 2023 03:3076,01952,407,16126,118,0002,009,0002,502,656
16Dec 24, 2023 03:3776,03251,358,61927,128,0001,004,0002,502,656
17Dec 24, 2023 03:3776,13055,070,18926,156,0002,012,0002,285,568
18Dec 24, 2023 03:3776,22748,223,20326,190,0002,014,0002,285,568
19Dec 24, 2023 03:3080,21285,803,31529,678,48502,228,224
20Dec 24, 2023 03:3780,49787,609,04829,783,82802,220,032
21Dec 24, 2023 03:3780,582102,507,11629,815,35002,224,128
22Dec 24, 2023 03:3080,92695,908,30729,942,78702,220,032
23Dec 24, 2023 03:3780,98283,007,90729,963,42302,220,032
24Dec 24, 2023 03:3081,208110,209,38830,046,92002,228,224