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 15:01Yuriy LyfenkoYuriy LyfenkoScore: 61,803Success
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 15:0161,511551,583,61720,780,0001,979,0002,281,472
2Jul 14, 2021 15:0161,514549,551,11320,781,0001,979,0002,277,376
3Jul 14, 2021 15:0161,557549,189,72220,796,0001,980,0002,285,568
4Jul 14, 2021 15:0161,586547,375,05820,806,0001,981,0002,523,136
5Jul 14, 2021 15:0161,592544,607,67621,799,000990,0002,289,664
6Jul 14, 2021 15:0161,635547,950,76120,822,0001,983,0002,289,664
7Jul 14, 2021 15:0161,651545,976,90721,820,000991,0002,519,040
8Jul 14, 2021 15:0161,700546,126,29520,844,0001,985,0002,281,472
9Jul 14, 2021 15:0161,711546,830,09120,848,0001,985,0002,285,568
10Jul 14, 2021 15:0161,738547,664,57220,857,0001,986,0002,281,472
11Jul 14, 2021 15:0161,743545,038,58020,859,0001,986,0002,523,136
12Jul 14, 2021 15:0161,784546,347,88220,873,0001,987,0002,281,472
13Jul 14, 2021 15:0161,803557,153,28921,873,000994,0002,281,472
14Jul 14, 2021 15:0161,838549,365,88420,891,0001,989,0002,281,472
15Jul 14, 2021 15:0161,900549,872,87420,912,0001,991,0002,277,376
16Jul 14, 2021 15:0161,908548,786,08120,915,0001,991,0002,285,568
17Jul 14, 2021 15:0162,081547,017,15720,973,0001,997,0002,269,184
18Jul 14, 2021 15:0162,116545,798,39520,985,0001,998,0002,281,472
19Jul 14, 2021 15:0164,228579,654,31623,764,36102,248,704
20Jul 14, 2021 15:0164,249589,150,79323,771,97502,248,704
21Jul 14, 2021 15:0164,300577,621,35323,790,86402,248,704
22Jul 14, 2021 15:0164,350589,920,73623,809,50702,248,704
23Jul 14, 2021 15:0164,370583,254,69523,816,85402,269,184
24Jul 14, 2021 15:0164,415577,371,47423,833,52102,248,704