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 16, 2023 15:46mmalczakmmalczakScore: 126,949Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 16, 2023 11:4399,236101,290,36436,717,31202,273,280
2Sep 16, 2023 15:4699,333127,674,17936,753,19402,252,800
3Sep 16, 2023 11:5399,37295,518,64836,767,53802,265,088
4Sep 16, 2023 12:0799,437100,320,74236,791,55002,265,088
5Sep 16, 2023 11:5399,524100,891,80936,823,99002,260,992
6Sep 16, 2023 11:4399,718106,344,46036,895,58402,260,992
7Sep 16, 2023 12:0799,877106,975,07736,954,39302,269,184
8Sep 16, 2023 15:46100,193117,171,98137,071,50202,269,184
9Sep 16, 2023 11:43100,264122,504,49837,097,53702,256,896
10Sep 16, 2023 11:53100,54873,808,23937,202,85002,260,992
11Sep 16, 2023 15:46100,682108,771,42537,252,51502,260,992
12Sep 16, 2023 12:07101,299102,568,90837,480,49102,273,280
13Sep 16, 2023 11:43125,69570,168,30745,496,0001,011,0002,289,664
14Sep 16, 2023 11:53125,75975,151,95745,520,0001,011,0002,277,376
15Sep 16, 2023 11:53125,79769,569,16245,534,0001,011,0002,523,136
16Sep 16, 2023 12:07126,48674,639,67344,809,0001,991,0002,269,184
17Sep 16, 2023 15:46126,60073,676,86044,849,0001,993,0002,289,664
18Sep 16, 2023 11:53126,62276,330,99244,857,0001,993,0002,531,328
19Sep 16, 2023 12:07126,62474,482,82245,855,000996,0002,289,664
20Sep 16, 2023 11:43126,68470,650,46845,876,000997,0002,289,664
21Sep 16, 2023 12:07126,75172,973,79444,903,0001,995,0002,289,664
22Sep 16, 2023 15:46126,75774,422,48644,905,0001,995,0002,289,664
23Sep 16, 2023 11:53126,83069,754,17545,929,000998,0002,289,664
24Sep 16, 2023 11:43126,91968,452,39744,962,0001,998,0002,285,568
25Sep 16, 2023 12:07126,94970,180,37144,973,0001,998,0002,289,664
26Sep 16, 2023 15:46126,98169,727,45844,984,0001,999,0002,273,280
27Sep 16, 2023 11:53126,99574,249,80644,989,0001,999,0002,289,664
28Sep 16, 2023 12:07127,00870,799,62544,994,0001,999,0002,289,664
29Sep 16, 2023 11:43127,02773,275,09945,000,0002,000,0002,289,664
30Sep 16, 2023 15:46127,02772,442,80545,000,0002,000,0002,277,376
31Sep 16, 2023 12:07127,05974,819,38145,012,0002,000,0002,277,376
32Sep 16, 2023 11:43127,16280,105,83945,048,0002,002,0002,527,232
33Sep 16, 2023 15:46127,20071,699,82845,062,0002,002,0002,273,280
34Sep 16, 2023 11:43127,22472,486,37445,070,0002,003,0002,289,664
35Sep 16, 2023 15:46127,25474,426,94945,081,0002,003,0002,289,664
36Sep 16, 2023 12:07127,28169,254,10245,090,0002,004,0002,383,872
37Sep 16, 2023 11:43127,30070,776,18445,097,0002,004,0002,527,232
38Sep 16, 2023 11:53127,31169,956,01345,101,0002,004,0002,289,664
39Sep 16, 2023 12:07127,32469,994,03745,106,0002,004,0002,289,664
40Sep 16, 2023 15:46127,33069,575,31146,110,0001,002,0002,289,664
41Sep 16, 2023 12:07127,40074,436,94245,133,0002,005,0002,289,664
42Sep 16, 2023 11:43127,41972,196,29645,139,0002,006,0002,289,664
43Sep 16, 2023 11:53127,45780,583,71846,156,0001,003,0002,273,280
44Sep 16, 2023 11:43127,53869,884,03945,181,0002,008,0002,281,472
45Sep 16, 2023 11:53127,64373,992,99946,224,0001,004,0002,289,664
46Sep 16, 2023 11:53127,96873,569,90346,341,0001,007,0002,289,664
47Sep 16, 2023 15:46128,00572,334,97345,347,0002,015,0002,289,664
48Sep 16, 2023 15:46128,14671,016,66245,397,0002,017,0002,531,328