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 15, 2021 17:52Yuriy LyfenkoYuriy LyfenkoScore: 61,530Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2021 17:5260,954552,447,80121,528,0001,025,0002,281,472
2Sep 15, 2021 17:5261,081554,091,56821,573,0001,027,0002,281,472
3Sep 15, 2021 17:5261,092555,382,33922,604,00002,281,472
4Sep 15, 2021 17:5361,095547,386,54021,578,0001,027,0002,281,472
5Sep 15, 2021 17:5261,108550,339,72321,583,0001,027,0002,281,472
6Sep 15, 2021 17:5261,146550,912,55621,596,0001,028,0002,289,664
7Sep 15, 2021 17:5261,149550,048,23121,597,0001,028,0002,281,472
8Sep 15, 2021 17:5361,151550,287,77421,598,0001,028,0002,281,472
9Sep 15, 2021 17:5361,157553,527,65322,628,00002,281,472
10Sep 15, 2021 17:5361,165553,270,04821,603,0001,028,0002,281,472
11Sep 15, 2021 17:5361,268545,347,55321,684,000985,0002,285,568
12Sep 15, 2021 17:5261,295551,719,92020,707,0001,972,0002,523,136
13Sep 15, 2021 17:5261,365550,978,43721,718,000987,0002,281,472
14Sep 15, 2021 17:5261,500548,128,10620,777,0001,978,0002,281,472
15Sep 15, 2021 17:5261,503552,818,29020,778,0001,978,0002,281,472
16Sep 15, 2021 17:5261,516550,913,08221,772,000989,0002,281,472
17Sep 15, 2021 17:5261,516552,981,00620,782,0001,979,0002,289,664
18Sep 15, 2021 17:5261,524547,260,96619,795,0002,969,0002,281,472
19Sep 15, 2021 17:5261,530549,914,35121,777,000989,0002,285,568
20Sep 15, 2021 17:5261,532550,711,48221,778,000989,0002,387,968
21Sep 15, 2021 17:5361,546550,909,78322,772,00002,281,472
22Sep 15, 2021 17:5261,546551,928,74621,782,000990,0002,277,376
23Sep 15, 2021 17:5361,549547,356,55220,793,0001,980,0002,281,472
24Sep 15, 2021 17:5261,559550,764,94020,797,0001,980,0002,273,280
25Sep 15, 2021 17:5361,562553,153,13021,788,000990,0002,289,664
26Sep 15, 2021 17:5361,635545,292,36920,822,0001,983,0002,281,472
27Sep 15, 2021 17:5262,400544,511,39322,085,0001,003,0002,285,568
28Sep 15, 2021 17:5264,127594,797,79723,727,15502,269,184
29Sep 15, 2021 17:5364,234587,814,29023,766,64402,281,472
30Sep 15, 2021 17:5264,253580,124,09923,773,63902,269,184
31Sep 15, 2021 17:5264,257580,140,03323,775,11302,252,800
32Sep 15, 2021 17:5264,262580,806,57623,776,85802,252,800
33Sep 15, 2021 17:5364,315583,420,63923,796,58802,273,280
34Sep 15, 2021 17:5264,506589,236,87823,867,19802,273,280
35Sep 15, 2021 17:5364,564580,049,20223,888,76402,265,088
36Sep 15, 2021 17:5264,593598,412,83623,899,41402,248,704