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 listFeb 22, 2024 07:39Huy Duc LeHuy Duc LeScore: 67,505Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 08:0067,08449,520,17522,836,0001,985,0002,273,280
2Feb 22, 2024 07:3967,12753,143,51423,844,000993,0002,514,944
3Feb 22, 2024 08:0067,17052,614,91921,871,0002,982,0002,273,280
4Feb 22, 2024 08:0067,19754,475,36823,869,000994,0002,273,280
5Feb 22, 2024 07:3967,21656,807,55222,881,0001,989,0002,277,376
6Feb 22, 2024 08:0067,24155,404,40022,889,0001,990,0002,273,280
7Feb 22, 2024 07:3967,28156,250,64321,907,0002,987,0002,519,040
8Feb 22, 2024 08:0067,33256,120,89622,920,0001,993,0002,514,944
9Feb 22, 2024 07:3967,34150,274,07622,923,0001,993,0002,273,280
10Feb 22, 2024 08:0067,35748,266,73021,932,0002,990,0002,502,656
11Feb 22, 2024 08:0067,40549,831,61622,945,0001,995,0002,273,280
12Feb 22, 2024 07:3967,45150,299,39222,961,0001,996,0002,506,752
13Feb 22, 2024 08:0067,50559,483,99022,979,0001,998,0002,273,280
14Feb 22, 2024 07:3967,50849,353,35422,980,0001,998,0002,506,752
15Feb 22, 2024 07:3967,68450,313,66823,040,0002,003,0002,273,280
16Feb 22, 2024 08:0067,70855,060,75524,050,0001,002,0002,273,280
17Feb 22, 2024 07:3967,73251,529,70025,061,00002,273,280
18Feb 22, 2024 07:3967,81651,278,27123,085,0002,007,0002,273,280
19Feb 22, 2024 07:3971,69590,921,72026,527,13702,256,896
20Feb 22, 2024 07:3971,74587,512,10026,545,78502,248,704
21Feb 22, 2024 08:0071,91195,481,77826,606,99102,240,512
22Feb 22, 2024 08:0072,059103,592,47926,661,67402,199,552
23Feb 22, 2024 07:3972,140103,220,85826,691,90602,248,704
24Feb 22, 2024 08:0072,27897,926,13326,742,82602,252,800