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 14:56Yuriy LyfenkoYuriy LyfenkoScore: 61,935Success
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 14:5661,422550,008,07221,738,000988,0002,285,568
2Jul 14, 2021 14:5661,514553,387,17521,771,000989,0002,285,568
3Jul 14, 2021 14:5661,584556,220,45321,796,000990,0002,281,472
4Jul 14, 2021 15:0061,589544,766,94820,807,0001,981,0002,281,472
5Jul 14, 2021 15:0061,605555,656,21820,812,0001,982,0002,281,472
6Jul 14, 2021 15:0061,608551,181,07120,813,0001,982,0002,281,472
7Jul 14, 2021 15:0061,759545,746,31520,864,0001,987,0002,285,568
8Jul 14, 2021 15:0061,776545,255,93220,870,0001,987,0002,285,568
9Jul 14, 2021 15:0061,795547,797,62720,876,0001,988,0002,281,472
10Jul 14, 2021 15:0061,797548,091,64320,877,0001,988,0002,285,568
11Jul 14, 2021 14:5661,873544,487,76321,898,000995,0002,285,568
12Jul 14, 2021 15:0061,886550,095,09620,907,0001,991,0002,285,568
13Jul 14, 2021 14:5661,935547,232,58421,920,000996,0002,285,568
14Jul 14, 2021 14:5662,000545,896,68520,946,0001,994,0002,281,472
15Jul 14, 2021 15:0062,016543,660,64620,951,0001,995,0002,281,472
16Jul 14, 2021 14:5662,030545,460,27321,954,000997,0002,285,568
17Jul 14, 2021 14:5662,043554,424,49320,960,0001,996,0002,285,568
18Jul 14, 2021 14:5662,086549,052,18420,975,0001,997,0002,531,328
19Jul 14, 2021 14:5664,200583,794,19223,754,14702,240,512
20Jul 14, 2021 14:5664,384575,086,75123,822,05902,248,704
21Jul 14, 2021 14:5664,467594,768,59523,852,73402,244,608
22Jul 14, 2021 15:0064,588595,325,93623,897,73102,244,608
23Jul 14, 2021 15:0064,618592,786,01923,908,60602,252,800
24Jul 14, 2021 15:0064,701581,424,38123,939,52402,240,512