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 28, 2023 18:44Yurkov AlekseyYurkov AlekseyScore: 98,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2023 18:4497,20357,991,73133,967,0001,998,0002,289,664
2Mar 28, 2023 18:4497,40057,726,61634,036,0002,002,0002,523,136
3Mar 28, 2023 18:4497,46257,936,10835,060,0001,001,0002,367,488
4Mar 28, 2023 18:4498,21456,851,80535,330,0001,009,0002,289,664
5Mar 28, 2023 18:4498,58466,345,46535,463,0001,013,0002,289,664
6Mar 28, 2023 18:4498,76265,736,54235,527,0001,015,0002,523,136
7Mar 28, 2023 18:4498,95166,543,07036,612,00002,289,664
8Mar 28, 2023 18:4498,969107,845,39836,618,52502,273,280
9Mar 28, 2023 18:4698,97089,613,31436,618,76502,269,184
10Mar 28, 2023 18:4699,308103,027,75936,743,98902,265,088
11Mar 28, 2023 18:4499,447106,089,26736,795,45202,269,184
12Mar 28, 2023 18:4499,57861,255,52735,849,000995,0002,285,568
13Mar 28, 2023 18:4499,62463,976,69334,869,0001,992,0002,269,184
14Mar 28, 2023 18:4699,915113,506,79636,968,59102,277,376
15Mar 28, 2023 18:44100,351103,781,72137,129,93802,265,088