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 listMar 27, 2023 21:45Yurkov AlekseyYurkov AlekseyScore: 98,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 27, 2023 21:4596,78963,967,30333,823,0001,989,0002,289,664
2Mar 27, 2023 21:4897,14362,295,71934,945,000998,0002,289,664
3Mar 27, 2023 21:4897,24164,847,23733,981,0001,998,0002,289,664
4Mar 27, 2023 21:4897,40363,914,64034,037,0002,002,0002,289,664
5Mar 27, 2023 21:4597,54162,248,60034,085,0002,005,0002,289,664
6Mar 27, 2023 21:4897,55461,727,42834,090,0002,005,0002,289,664
7Mar 27, 2023 21:4597,60558,791,19134,108,0002,006,0002,265,088
8Mar 27, 2023 21:4897,70560,395,37434,143,0002,008,0002,289,664
9Mar 27, 2023 21:4597,90361,517,43234,212,0002,012,0002,289,664
10Mar 27, 2023 21:4597,94963,028,95734,228,0002,013,0002,289,664
11Mar 27, 2023 21:4897,99557,232,64034,244,0002,014,0002,273,280
12Mar 27, 2023 21:4598,02257,261,78034,254,0002,014,0002,289,664
13Mar 27, 2023 21:4898,02258,321,61534,254,0002,014,0002,289,664
14Mar 27, 2023 21:4898,11456,243,58934,286,0002,016,0002,371,584
15Mar 27, 2023 21:4598,21459,311,53134,321,0002,018,0002,289,664
16Mar 27, 2023 21:4898,76858,582,26835,529,0001,015,0002,359,296
17Mar 27, 2023 21:4598,78160,049,28236,549,00002,289,664
18Mar 27, 2023 21:4598,92463,620,15636,602,00002,289,664
19Mar 27, 2023 21:4599,640102,484,45836,866,78202,265,088
20Mar 27, 2023 21:4599,734110,396,07036,901,59402,265,088
21Mar 27, 2023 21:4899,803108,139,48836,927,18702,265,088
22Mar 27, 2023 21:48100,357102,443,53137,132,19802,273,280
23Mar 27, 2023 21:48100,767104,904,53237,283,68302,269,184
24Mar 27, 2023 21:45101,670109,851,99937,617,87402,252,800