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 listJul 13, 2021 17:33Yuriy LyfenkoYuriy LyfenkoScore: 96,800Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 17:3395,33260,473,23633,258,0002,015,0002,519,040
2Jul 13, 2021 17:3195,48657,993,47733,312,0002,018,0002,334,720
3Jul 13, 2021 17:3395,60561,307,63632,342,0003,032,0002,527,232
4Jul 13, 2021 17:3395,69557,624,84933,384,0002,023,0002,334,720
5Jul 13, 2021 17:3195,70059,687,76733,386,0002,023,0002,519,040
6Jul 13, 2021 17:3195,75160,637,56034,416,0001,012,0002,514,944
7Jul 13, 2021 17:3195,78656,814,77433,416,0002,025,0002,334,720
8Jul 13, 2021 17:3395,81959,302,07033,428,0002,025,0002,519,040
9Jul 13, 2021 17:3195,98157,762,73834,499,0001,014,0002,523,136
10Jul 13, 2021 17:3195,98159,837,54233,484,0002,029,0002,326,528
11Jul 13, 2021 17:3396,03263,005,56833,502,0002,030,0002,334,720
12Jul 13, 2021 17:3396,11962,314,05234,548,0001,016,0002,383,872
13Jul 13, 2021 17:3396,80062,987,30533,827,0001,989,0002,383,872
14Jul 13, 2021 17:3196,84361,671,08934,837,000995,0002,334,720
15Jul 13, 2021 17:3196,86859,666,43133,850,0001,991,0002,527,232
16Jul 13, 2021 17:3396,87364,460,20633,852,0001,991,0002,514,944
17Jul 13, 2021 17:3196,88663,300,78232,861,0002,987,0002,334,720
18Jul 13, 2021 17:3396,89566,111,78333,860,0001,991,0002,334,720
19Jul 13, 2021 17:3197,917101,860,66236,229,43302,179,072
20Jul 13, 2021 17:3398,09192,547,58436,293,79302,306,048
21Jul 13, 2021 17:3398,249107,331,06936,352,15602,187,264
22Jul 13, 2021 17:3198,28894,649,63436,366,61802,179,072
23Jul 13, 2021 17:3398,889104,615,47636,588,83002,179,072
24Jul 13, 2021 17:3198,991103,335,01936,626,50002,187,264