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 18, 2021 22:16Ilya AniskovetsIlya AniskovetsScore: 119,184Success
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 14:51118,68165,702,74042,891,0001,021,0002,281,472
2Sep 18, 2021 22:16118,76865,420,65841,947,0001,997,0002,289,664
3Sep 18, 2021 22:16118,82766,991,03241,968,0001,998,0002,289,664
4Sep 18, 2021 22:16118,95776,246,05343,014,0001,000,0002,289,664
5Sep 3, 2021 14:51118,97069,165,32842,019,0002,000,0002,289,664
6Sep 18, 2021 22:16118,99267,344,35842,026,0002,001,0002,523,136
7Sep 3, 2021 14:51119,01468,220,75943,035,0001,000,0002,273,280
8Sep 3, 2021 14:51119,05769,510,85042,049,0002,002,0002,289,664
9Sep 3, 2021 14:51119,07667,947,27742,056,0002,002,0002,289,664
10Sep 18, 2021 22:16119,08971,315,47842,061,0002,002,0002,289,664
11Sep 18, 2021 22:16119,17066,440,78443,091,0001,002,0002,523,136
12Sep 3, 2021 14:51119,17369,635,43743,092,0001,002,0002,289,664
13Sep 3, 2021 14:51119,18466,973,12742,094,0002,004,0002,289,664
14Sep 3, 2021 14:51119,22466,715,95742,108,0002,005,0002,375,680
15Sep 18, 2021 22:16119,30567,116,09943,140,0001,003,0002,289,664
16Sep 18, 2021 22:16119,45770,731,54842,190,0002,009,0002,289,664
17Sep 3, 2021 14:51119,60369,196,91142,242,0002,011,0002,289,664
18Sep 18, 2021 22:16119,70568,196,47342,278,0002,013,0002,265,088
19Sep 18, 2021 22:16120,840104,975,88744,710,86802,260,992
20Sep 3, 2021 14:51120,988111,947,69244,765,53602,260,992
21Sep 3, 2021 14:51121,106116,908,62044,809,32302,252,800
22Sep 18, 2021 22:16121,264126,466,67944,867,52102,252,800
23Sep 18, 2021 22:16121,330111,644,91544,892,05702,273,280
24Sep 3, 2021 14:51121,688103,214,82145,024,43102,273,280