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 11, 2021 07:58Sergey StreminSergey StreminScore: 84,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2021 07:5883,38457,569,00528,862,0001,990,0002,494,464
2Sep 11, 2021 08:0183,40354,996,82229,864,000995,0002,498,560
3Sep 11, 2021 08:0183,48961,011,77529,895,000996,0002,281,472
4Sep 11, 2021 07:5883,70054,645,07429,970,000999,0002,498,560
5Sep 11, 2021 08:0183,71655,223,86128,977,0001,998,0002,502,656
6Sep 11, 2021 07:5883,74959,510,22528,988,0001,999,0002,285,568
7Sep 11, 2021 08:0183,83257,276,54830,018,0001,000,0002,498,560
8Sep 11, 2021 07:5883,98161,020,58830,071,0001,002,0002,490,368
9Sep 11, 2021 08:0183,99756,809,14230,077,0001,002,0002,281,472
10Sep 11, 2021 07:5884,03556,616,12929,087,0002,006,0002,498,560
11Sep 11, 2021 08:0184,29553,913,43929,177,0002,012,0002,494,464
12Sep 11, 2021 07:5884,36553,318,93530,209,0001,006,0002,285,568
13Sep 11, 2021 08:0184,46553,479,13930,244,0001,008,0002,281,472
14Sep 11, 2021 08:0184,85196,773,41531,394,91902,256,896
15Sep 11, 2021 07:5885,03858,962,10531,464,00002,494,464
16Sep 11, 2021 07:5885,052102,867,77031,469,30102,203,648
17Sep 11, 2021 08:0185,24957,266,51630,525,0001,017,0002,494,464
18Sep 11, 2021 08:0185,25952,701,05931,546,00002,285,568
19Sep 11, 2021 07:5885,28087,935,54431,553,68602,203,648
20Sep 11, 2021 07:5885,57059,264,68331,661,00002,342,912
21Sep 11, 2021 08:0185,94098,249,63931,797,78002,256,896
22Sep 11, 2021 07:5885,982102,761,66531,813,37702,260,992
23Sep 11, 2021 08:0185,994119,788,39631,817,93302,260,992
24Sep 11, 2021 07:5886,24658,906,08729,917,0001,994,0002,285,568