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 14, 2021 13:34Yuriy LyfenkoYuriy LyfenkoScore: 88,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2021 13:3687,119556,789,91830,220,0002,014,0002,326,528
2Jul 14, 2021 13:3687,173557,351,86429,231,0003,023,0002,326,528
3Jul 14, 2021 13:3687,527555,035,73531,373,0001,012,0002,519,040
4Jul 14, 2021 13:3487,532560,577,17131,375,0001,012,0002,326,528
5Jul 14, 2021 13:3687,778554,412,65131,464,0001,014,0002,330,624
6Jul 14, 2021 13:3487,886560,516,10630,486,0002,032,0002,326,528
7Jul 14, 2021 13:3687,895554,835,92631,505,0001,016,0002,326,528
8Jul 14, 2021 13:3487,895554,413,03531,505,0001,016,0002,519,040
9Jul 14, 2021 13:3688,000560,063,29430,525,0002,035,0002,506,752
10Jul 14, 2021 13:3688,054560,388,36632,580,00002,510,848
11Jul 14, 2021 13:3688,105565,113,02631,581,0001,018,0002,330,624
12Jul 14, 2021 13:3688,130562,757,08630,632,0001,976,0002,326,528
13Jul 14, 2021 13:3688,173558,898,97931,605,0001,019,0002,326,528
14Jul 14, 2021 13:3688,422560,193,83030,734,0001,982,0002,326,528
15Jul 14, 2021 13:3488,465559,504,94829,757,0002,975,0002,330,624
16Jul 14, 2021 13:3488,491590,609,41632,741,77002,248,704
17Jul 14, 2021 13:3688,524561,562,17730,769,0001,985,0002,326,528
18Jul 14, 2021 13:3688,586562,946,25331,784,000993,0002,330,624
19Jul 14, 2021 13:3488,605561,059,95529,804,0002,980,0002,326,528
20Jul 14, 2021 13:3488,608557,525,79530,798,0001,987,0002,375,680
21Jul 14, 2021 13:3488,631592,265,04032,793,46502,301,952
22Jul 14, 2021 13:3688,712586,531,52432,823,39802,248,704
23Jul 14, 2021 13:3688,721589,033,61432,826,71002,179,072
24Jul 14, 2021 13:3688,824563,028,10630,874,0001,991,0002,330,624
25Jul 14, 2021 13:3688,837597,935,28732,869,85902,306,048
26Jul 14, 2021 13:3689,041558,857,94230,949,0001,996,0002,326,528
27Jul 14, 2021 13:3689,081565,076,88230,963,0001,997,0002,326,528
28Jul 14, 2021 13:3689,105560,202,95629,972,0002,997,0002,326,528
29Jul 14, 2021 13:3489,138559,867,28330,983,0001,998,0002,330,624
30Jul 14, 2021 13:3489,308560,427,39430,040,0003,004,0002,326,528
31Jul 14, 2021 13:3689,319555,864,48530,044,0003,004,0002,326,528
32Jul 14, 2021 13:3689,346607,035,51633,057,98102,301,952
33Jul 14, 2021 13:3689,544589,575,65033,131,38802,252,800
34Jul 14, 2021 13:3489,578557,146,81531,136,0002,008,0002,326,528
35Jul 14, 2021 13:3689,660592,622,54633,174,02302,248,704
36Jul 14, 2021 13:3489,950594,071,03433,281,42702,252,800