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 3, 2021 15:01Ilya AniskovetsIlya AniskovetsScore: 119,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2021 15:02118,47067,983,54341,842,0001,992,0002,289,664
2Sep 3, 2021 15:02118,58168,318,52541,881,0001,994,0002,273,280
3Sep 3, 2021 15:01118,65965,983,78941,909,0001,995,0002,289,664
4Sep 3, 2021 15:01118,66567,433,41541,911,0001,995,0002,277,376
5Sep 3, 2021 15:02118,75173,525,54641,941,0001,997,0002,359,296
6Sep 3, 2021 15:02118,76866,555,32842,946,000998,0002,265,088
7Sep 3, 2021 15:02118,81674,141,17841,964,0001,998,0002,289,664
8Sep 3, 2021 15:01118,94375,871,98742,009,0002,000,0002,269,184
9Sep 3, 2021 15:01118,95971,568,61843,015,0001,000,0002,289,664
10Sep 3, 2021 15:02119,07874,483,76842,057,0002,002,0002,289,664
11Sep 3, 2021 15:01119,14369,672,93842,080,0002,003,0002,269,184
12Sep 3, 2021 15:01119,19568,614,10542,098,0002,004,0002,523,136
13Sep 3, 2021 15:02119,22265,676,50042,107,0002,005,0002,269,184
14Sep 3, 2021 15:02119,30064,526,35442,135,0002,006,0002,289,664
15Sep 3, 2021 15:01119,35467,957,99242,154,0002,007,0002,277,376
16Sep 3, 2021 15:02119,37672,351,26642,162,0002,007,0002,277,376
17Sep 3, 2021 15:01119,54367,195,26443,226,0001,005,0002,523,136
18Sep 3, 2021 15:01119,74171,123,83142,291,0002,013,0002,289,664
19Sep 3, 2021 15:01121,703105,924,32145,030,09302,252,800
20Sep 3, 2021 15:02121,755104,061,43045,049,37402,273,280
21Sep 3, 2021 15:02122,207103,105,51245,216,76002,265,088
22Sep 3, 2021 15:01122,257114,347,83845,234,95302,265,088
23Sep 3, 2021 15:02122,565115,629,55945,348,93502,256,896
24Sep 3, 2021 15:01123,173118,886,28945,574,14402,265,088