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 23, 2024 07:14Huy Duc LeHuy Duc LeScore: 67,519Success
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 07:4067,08656,019,91022,837,0001,985,0002,498,560
2Feb 22, 2024 07:4067,11657,017,50622,847,0001,986,0002,506,752
3Feb 23, 2024 07:1467,14350,088,80722,856,0001,987,0002,273,280
4Feb 23, 2024 07:1467,18453,807,96822,870,0001,988,0002,506,752
5Feb 22, 2024 07:4067,28953,780,87322,906,0001,991,0002,506,752
6Feb 22, 2024 07:4067,37055,136,91022,933,0001,994,0002,502,656
7Feb 22, 2024 07:4067,40057,914,03722,943,0001,995,0002,510,848
8Feb 22, 2024 07:4067,44650,225,55321,961,0002,994,0002,277,376
9Feb 23, 2024 07:1467,46848,306,80722,966,0001,997,0002,273,280
10Feb 23, 2024 07:1467,47354,893,38922,968,0001,997,0002,273,280
11Feb 23, 2024 07:1467,50852,677,68522,980,0001,998,0002,273,280
12Feb 22, 2024 07:4067,51154,534,75721,982,0002,997,0002,510,848
13Feb 23, 2024 07:1467,51951,108,10522,984,0001,998,0002,506,752
14Feb 22, 2024 07:4067,54949,362,81022,994,0001,999,0002,510,848
15Feb 23, 2024 07:1467,54955,435,87822,994,0001,999,0002,273,280
16Feb 22, 2024 07:4067,56855,152,30123,000,0002,000,0002,506,752
17Feb 23, 2024 07:1467,60550,847,80422,013,0003,001,0002,359,296
18Feb 23, 2024 07:1467,71652,656,28323,051,0002,004,0002,273,280
19Feb 22, 2024 07:4071,67093,190,93926,517,86702,191,360
20Feb 23, 2024 07:1471,82798,658,81726,576,04302,244,608
21Feb 23, 2024 07:1471,91497,424,66926,608,24602,195,456
22Feb 22, 2024 07:4072,24091,323,30326,728,68102,248,704
23Feb 22, 2024 07:4072,39193,914,32226,784,51502,252,800
24Feb 23, 2024 07:1472,54193,715,56926,840,17002,260,992