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 listSep 15, 2021 16:05piculpiculScore: 108,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2021 16:06105,48161,121,75037,027,0002,001,0002,510,848
2Sep 15, 2021 16:06105,54965,067,71038,052,0001,001,0002,289,664
3Sep 15, 2021 16:06106,71161,976,82739,483,00002,289,664
4Sep 15, 2021 16:05107,26269,458,93238,670,0001,017,0002,289,664
5Sep 15, 2021 16:06107,84363,016,91837,907,0001,995,0002,289,664
6Sep 15, 2021 16:06107,92464,814,10037,936,0001,996,0002,289,664
7Sep 15, 2021 16:05107,95468,493,84237,946,0001,997,0002,523,136
8Sep 15, 2021 16:06108,05967,005,16337,983,0001,999,0002,289,664
9Sep 15, 2021 16:05108,18663,100,90238,028,0002,001,0002,289,664
10Sep 15, 2021 16:05108,27062,886,11338,057,0002,003,0002,289,664
11Sep 15, 2021 16:05108,28666,771,68239,065,0001,001,0002,289,664
12Sep 15, 2021 16:05108,36267,238,03239,092,0001,002,0002,519,040
13Sep 15, 2021 16:05108,52765,278,62438,148,0002,007,0002,289,664
14Sep 15, 2021 16:06108,60861,383,82339,181,0001,004,0002,289,664
15Sep 15, 2021 16:06108,83565,292,54039,263,0001,006,0002,269,184
16Sep 15, 2021 16:05109,11171,309,40339,362,0001,009,0002,527,232
17Sep 15, 2021 16:05111,09567,932,77741,105,00002,510,848
18Sep 15, 2021 16:06111,52762,625,27340,259,0001,006,0002,289,664
19Sep 15, 2021 16:05115,711109,163,57242,813,22502,260,992
20Sep 15, 2021 16:06116,295105,750,07243,029,32202,248,704
21Sep 15, 2021 16:06116,301115,967,25843,031,37302,256,896
22Sep 15, 2021 16:05118,368110,168,50043,796,22802,252,800
23Sep 15, 2021 16:05119,445113,276,02544,194,75402,252,800
24Sep 15, 2021 16:06121,703100,309,51245,029,94202,260,992