QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#374869 | #8309. Mountain | PetroTarnavskyi# | AC ✓ | 44ms | 5960kb | C++20 | 2.7kb | 2024-04-02 19:00:30 | 2024-04-02 19:00:30 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;
template<typename T>
void updMax(T& a, T b)
{
a = max(a, b);
}
bool hasBit(int mask, int i)
{
return (mask >> i) & 1;
}
db area(int y, int h1, int h2)
{
if (h1 > h2)
swap(h1, h2);
if (h1 >= y)
return y;
if (h2 <= y)
return (h1 + h2) / 2.0;
return y - (y - h1) * (y - h1) / (2.0 * (h2 - h1));
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout << fixed << setprecision(15);
int n, w, h;
cin >> n >> w >> h;
VI a(n + 2);
FOR(i, 1, n + 1)
cin >> a[i];
int m = 2 * w - 1, fullMask = (1 << m) - 1;
vector f(n + 1, vector<db>(1 << m));
VI l(2 * w), r(2 * w);
FOR(i, 1, n + 1)
{
FOR(mask, 0, 1 << m)
{
l.assign(2 * w, max(0, a[i] - h));
r.assign(2 * w, a[i] + h);
FOR(j, 0, m)
{
if (!hasBit(mask, j))
continue;
int k = i - j - 1;
if (k < 1)
continue;
FOR(p, 0, 2 * w)
{
int index = i + p - w;
if (k - w <= index && index < k + w)
{
int& curL = l[p];
int& curR = r[p];
if (a[i] - h <= a[k] - h && a[k] - h <= a[i] + h)
{
curR = min(curR, a[k] - h);
}
if (a[i] - h <= a[k] + h && a[k] + h <= a[i] + h)
{
curL = max(curL, a[k] + h);
}
}
}
}
FOR(p, 0, 2 * w)
{
int index = i + p - w;
if (l[p] < r[p] && index >= 0 && index + 1 < n + 2)
{
f[i][mask] += area(r[p], a[index], a[index + 1]) - area(l[p], a[index], a[index + 1]);
}
}
}
}
vector dp(n + 1, vector<db>(1 << m, -1));
vector ndp(n + 1, vector<db>(1 << m, -1));
dp[0][0] = 0;
FOR(i, 0, n)
{
FOR(j, 0, n + 1)
FOR(mask, 0, 1 << m)
ndp[j][mask] = -1;
FOR(j, 0, n + 1)
{
FOR(mask, 0, 1 << m)
{
if (dp[j][mask] < 0)
continue;
updMax(ndp[j][(2 * mask) & fullMask], dp[j][mask]);
updMax(ndp[j + 1][(2 * mask + 1) & fullMask], dp[j][mask] + f[i + 1][mask]);
}
}
dp = ndp;
//FOR(j, 0, n + 1)
//{
// FOR(mask, 0, 1 << m)
// {
// if (dp[j][mask] < 0)
// continue;
// //cerr << i + 1 << " " << j << " ";
// //RFOR(k, m, 0)
// //{
// // cerr << hasBit(mask, k);
// //}
// //cerr << " " << dp[j][mask] << endl;
// }
//}
}
FOR(k, 1, n + 1)
{
db ans = 0;
FOR(mask, 0, 1 << m)
{
updMax(ans, dp[k][mask]);
}
cout << ans << "\n";
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3812kb
input:
3 1 2 2 1 3
output:
3.500000000000000 4.500000000000000 5.166666666666667
result:
ok 3 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 3 78 55 51
output:
106.000000000000000 106.000000000000000
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
36 3 61 63 83 12 81 1 58 56 13 1 82 54 16 66 43 9 92 98 34 95 37 36 10 50 45 27 74 83 94 82 48 47 62 22 10 92 49
output:
385.500000000000000 763.179687500000000 1028.679687500000000 1294.078937940917058 1559.010944472862320 1721.010944472862320 1820.374712588804414 1823.733258928571558 1825.000000000000000 1825.000000000000227 1825.000000000000227 1825.000000000000455 1825.000000000000455 1825.000000000000455 1825.000...
result:
ok 36 numbers
Test #4:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
37 2 9 51 64 99 52 2 7 33 73 4 39 1 22 41 51 97 72 71 46 11 10 37 79 97 79 70 19 58 13 43 88 38 55 54 9 31 74 62
output:
69.634615384615387 138.893706293706316 207.523575574752044 268.609289860466333 317.591597552774033 363.690646178566851 408.373451608431139 452.223075668581430 491.392640885972753 527.928355171687144 564.419708555145689 600.419708555145689 636.368006427486080 672.310615123138405 707.847757980281131 7...
result:
ok 37 numbers
Test #5:
score: 0
Accepted
time: 2ms
memory: 4020kb
input:
66 4 90 54 54 42 52 31 76 14 66 59 63 85 49 15 80 54 35 39 87 34 72 28 86 24 76 12 45 34 28 60 24 6 48 35 86 65 59 87 50 7 12 25 31 81 7 29 62 37 90 75 98 49 15 100 78 36 98 80 48 36 15 28 16 35 76 50 71
output:
545.000000000000000 1000.500000000000000 1437.000000000000000 1869.500000000000000 2299.000000000000000 2665.000000000000000 2980.500000000000000 3217.000000000000000 3299.000000000000000 3299.000000000000000 3299.000000000000000 3299.000000000000000 3299.000000000000000 3299.000000000000000 3299.00...
result:
ok 66 numbers
Test #6:
score: 0
Accepted
time: 9ms
memory: 4304kb
input:
72 5 31 86 32 48 56 32 94 89 91 62 85 60 76 61 62 14 15 45 9 63 69 46 85 78 28 25 59 12 31 96 35 51 65 99 28 91 95 15 54 9 99 61 85 67 7 92 18 84 41 98 34 70 51 45 17 78 72 18 86 20 31 63 52 16 31 62 94 78 56 81 78 73 84
output:
527.243103900246297 1015.741488378335248 1496.432482859555421 1976.833221495919133 2434.851872555004775 2767.288561061215205 3086.778144394548690 3326.402790811059731 3508.822397136144446 3686.503313129760500 3798.706536553153455 3906.043188082966935 3956.004184459778571 3975.898561315941151 3983.88...
result:
ok 72 numbers
Test #7:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
97 2 63 74 89 45 91 37 100 1 88 25 38 52 92 66 74 49 48 65 71 78 87 13 82 82 69 30 20 37 85 55 42 22 67 17 19 21 58 8 87 8 3 73 11 16 76 97 44 25 36 90 96 10 65 99 48 49 66 70 9 40 81 55 27 47 77 68 34 78 43 28 93 57 6 94 26 42 48 52 36 10 68 56 11 51 80 89 88 28 33 25 8 62 22 57 53 81 42 57
output:
280.500000000000000 551.000000000000000 812.500000000000000 1062.000000000000000 1302.000000000000000 1540.421562867215016 1763.421562867215016 1985.421562867215016 2203.904805001277964 2420.904805001277964 2635.404805001277964 2846.904805001277964 3054.904805001277964 3260.904805001277964 3456.1918...
result:
ok 97 numbers
Test #8:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
26 1 38 96 31 44 30 23 66 97 94 58 89 55 28 45 59 10 12 61 52 35 69 67 57 55 27 78 11
output:
109.500000000000000 205.000000000000000 300.392307692307668 392.235444947209658 472.235444947209658 551.735444947209658 626.235444947209658 696.944747272791005 760.026142621628310 808.260836499179391 852.526142621628310 896.250023218643264 935.750023218643264 974.750023218643264 1004.280635463541103...
result:
ok 26 numbers
Test #9:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
2 3 49 39 54
output:
93.000000000000000 93.000000000000000
result:
ok 2 numbers
Test #10:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
83 2 90 10 13 17 84 4 38 76 3 100 87 95 43 1 7 14 16 39 6 29 31 21 5 56 41 81 32 21 96 95 77 79 8 69 17 63 24 44 40 88 47 80 32 16 7 74 21 96 47 61 54 43 34 87 27 89 63 16 15 36 66 59 15 74 96 37 88 60 57 13 51 41 54 64 8 48 26 100 61 27 26 62 82 26
output:
305.000000000000000 608.000000000000000 896.000000000000000 1147.500000000000000 1398.500000000000000 1640.000000000000000 1854.000000000000000 2056.500000000000000 2259.000000000000000 2450.000000000000000 2638.500000000000000 2813.500000000000000 2986.000000000000000 3151.000000000000000 3289.0000...
result:
ok 83 numbers
Test #11:
score: 0
Accepted
time: 2ms
memory: 3996kb
input:
60 4 43 4 30 17 48 95 83 36 54 46 21 31 7 2 73 81 83 71 8 40 37 41 52 57 47 72 98 1 70 83 99 67 58 74 96 21 19 97 99 44 46 91 23 21 58 89 47 35 18 62 44 12 3 61 44 21 48 35 51 59 92
output:
435.931200466200494 847.606796471502321 1248.606796471502321 1642.713179450225653 2019.178265089224169 2373.933838137302246 2633.984781143197779 2791.498249501081318 2882.995639828518961 2945.850247385676994 2978.667896049069896 3005.233835328007444 3014.902585638998971 3018.937500000000455 3022.000...
result:
ok 60 numbers
Test #12:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
9 3 15 41 56 23 46 34 6 34 31 36
output:
136.275098355162015 219.185812640876293 252.884225339289003 271.226287262872688 271.336043360433621 271.336043360433621 271.336043360433678 271.336043360433678 271.336043360433678
result:
ok 9 numbers
Test #13:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
32 3 30 14 56 23 70 70 70 85 30 35 39 14 83 46 57 90 71 85 20 46 90 18 96 26 66 55 29 89 96 62 49 56 79
output:
315.160227272727298 583.944221056721062 851.762402874902818 1049.194147797265714 1231.124042006431864 1408.806067427819016 1512.453840488092055 1575.004384329597087 1628.397034232885289 1667.510554046405105 1694.987826773677853 1711.020532956383931 1722.799321532397698 1724.822594805671315 1725.1776...
result:
ok 32 numbers
Test #14:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
82 2 18 47 15 66 24 45 32 11 9 55 52 50 54 19 11 93 16 13 1 92 81 8 96 12 81 23 13 75 7 33 92 10 22 41 90 27 56 36 100 67 31 67 79 40 20 46 60 36 99 61 1 56 98 19 39 84 51 65 61 70 97 38 49 3 31 88 44 34 31 71 77 27 37 29 11 7 66 46 46 10 41 45 66
output:
135.000000000000000 268.849367088607607 402.503466314504863 534.896323457362087 656.331682216250101 772.091682216250092 885.341159568166631 997.892348259535083 1107.561579028765891 1215.652488119674899 1320.912715392402106 1423.186908940789181 1525.082450576750944 1622.159472399600872 1714.171642876...
result:
ok 82 numbers
Test #15:
score: 0
Accepted
time: 1ms
memory: 4060kb
input:
26 3 53 99 67 20 32 5 57 79 15 24 38 78 23 30 74 19 83 71 91 88 38 41 43 76 10 81 28
output:
374.500000000000000 659.000000000000000 929.262452651515105 1166.785811237373764 1289.810811237373855 1303.787452651515196 1309.865340909090719 1310.000000000000000 1310.000000000000000 1310.000000000000000 1310.000000000000000 1310.000000000000000 1310.000000000000000 1310.000000000000000 1310.0000...
result:
ok 26 numbers
Test #16:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
2 1 62 34 61
output:
78.000000000000000 95.000000000000000
result:
ok 2 numbers
Test #17:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
25 2 20 27 40 67 99 46 49 47 53 90 84 38 70 90 31 51 16 43 27 57 87 7 89 36 24 29
output:
149.402173913043470 277.124230791350328 396.850645885689971 499.911621495446070 587.744180316301708 660.744180316301708 727.338774910896291 787.399750520652447 831.887407116083637 871.887407116083637 907.887407116083637 938.959908863113583 964.588878030163755 988.494283435569173 995.331892731473431 ...
result:
ok 25 numbers
Test #18:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 1 35 100 15
output:
50.294117647058826 63.625000000000000
result:
ok 2 numbers
Test #19:
score: 0
Accepted
time: 14ms
memory: 4532kb
input:
100 5 100 97 96 98 97 96 98 97 97 95 99 96 95 99 95 100 100 96 97 97 97 100 99 98 100 97 97 98 99 98 95 100 99 95 99 98 96 100 95 97 96 95 96 100 98 99 97 99 95 95 98 95 98 100 98 97 99 100 99 97 100 100 98 99 95 98 99 100 97 97 97 100 95 100 96 100 100 100 96 100 95 100 97 97 100 99 100 100 100 95 ...
output:
988.000000000000000 1974.500000000000000 2957.500000000000000 3940.000000000000000 4920.000000000000000 5898.000000000000000 6871.500000000000000 7841.500000000000000 8809.500000000000000 9728.500000000000000 9777.000000000000000 9777.000000000000000 9777.000000000000000 9777.000000000000000 9777.00...
result:
ok 100 numbers
Test #20:
score: 0
Accepted
time: 18ms
memory: 4520kb
input:
100 5 100 3 2 5 5 1 1 1 5 4 2 2 4 3 4 1 5 4 3 1 3 1 1 4 4 1 2 2 3 1 4 4 1 5 3 4 1 1 3 4 3 3 4 2 3 5 2 3 1 2 2 2 3 1 4 2 1 4 4 3 5 5 3 1 4 1 2 2 2 4 1 5 4 4 1 2 2 5 1 2 2 4 5 5 4 1 5 4 3 4 5 3 4 2 4 5 1 1 1 4 4
output:
39.500000000000000 72.500000000000000 104.500000000000000 135.500000000000000 165.500000000000000 194.000000000000000 222.000000000000000 247.000000000000000 268.500000000000000 287.500000000000000 289.000000000000000 289.000000000000000 289.000000000000000 289.000000000000000 289.000000000000000 28...
result:
ok 100 numbers
Test #21:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
10 5 100 99 99 95 99 99 96 95 99 100 98
output:
930.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000 979.000000000000000
result:
ok 10 numbers
Test #22:
score: 0
Accepted
time: 7ms
memory: 4220kb
input:
62 5 9226 5678 7916 8770 5058 9668 6819 2395 8699 1212 1675 6923 4554 564 3977 1879 4003 9795 9130 6121 7979 9051 6312 134 8487 1610 8356 9879 2019 1955 4444 2429 6762 5276 5727 7611 6905 2478 4623 9944 3937 2168 7834 22 8818 7821 2642 8271 9652 2770 8415 8372 3297 5450 3669 6723 6079 8425 182 729 9...
output:
67017.000000000000000 129950.500000000000000 188463.000000000000000 244430.000000000000000 293610.066367250285111 328744.500000000000000 335770.000000000000000 335770.000000000000000 335770.000000000000000 335770.000000000000000 335770.000000000000000 335770.000000000000000 335770.000000000000000 33...
result:
ok 62 numbers
Test #23:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
8 2 3968 9874 1834 3566 4943 1025 6350 6786 9728
output:
15874.693193844428606 28689.215050041919312 37007.351294173378847 38783.816597391938558 39219.816597391938558 39271.816597391938558 39271.816597391938558 39271.816597391938558
result:
ok 8 numbers
Test #24:
score: 0
Accepted
time: 9ms
memory: 4372kb
input:
84 5 2686 2634 8215 4448 1956 9229 9410 122 6395 3946 5346 2661 2338 1521 5927 6444 7950 3489 2299 1883 1742 5323 3344 1787 1024 9942 6647 7992 4366 4243 8580 1853 9314 9574 6478 5117 3158 2264 9998 2579 3913 6164 7783 7985 6168 8666 4247 136 8695 2485 7795 3471 3435 3710 2688 5737 3680 8896 7391 83...
output:
45466.973896606330527 89929.093032031072653 133631.698416446277406 174702.180104643048253 215514.785450183175271 254967.660983236448374 284350.048517503077164 307342.957765010767616 329421.048505516140722 348502.922364181664307 361941.914770639326889 374846.496701109921560 387302.496701109921560 395...
result:
ok 84 numbers
Test #25:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
21 2 5652 4210 6520 2171 1968 4655 4936 7912 4325 7500 8712 5703 3963 5184 6254 7702 420 4570 1229 4590 5744 8430
output:
26561.000000000000000 48894.000000000000000 67905.002016607351834 83250.072738936389214 98341.572738936374662 105242.072738936374662 106422.502016607351834 106606.502016607351834 106606.502016607366386 106606.502016607366386 106606.502016607366386 106606.502016607366386 106606.502016607366386 106606...
result:
ok 21 numbers
Test #26:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
79 1 5263 2816 2949 8534 582 5778 5621 1284 2408 35 1123 4355 3941 6079 5109 223 3191 1965 330 377 7429 8748 1400 5238 7204 2113 651 6023 5089 8909 4992 8519 6236 9540 6842 132 154 2913 2269 9717 5333 4858 3804 9894 346 3227 8706 2808 635 9083 1846 2872 8483 9388 7275 1034 6504 6941 2140 3519 4319 1...
output:
13706.000000000000000 27025.500000000000000 39580.500000000000000 52061.000000000000000 64520.500000000000000 76798.500000000000000 88600.500000000000000 99724.348193760262802 110288.848193760262802 120192.576772698404966 130047.697994486254174 139587.697994486254174 148745.697994486254174 157762.69...
result:
ok 79 numbers
Test #27:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
33 2 1736 8371 8783 9276 8523 95 2082 3157 2206 1929 3633 3020 8548 2712 8838 7545 3045 9712 2263 3674 8966 729 8856 7678 1301 7926 8295 2088 4315 4597 6161 4663 7127 2800
output:
13199.384003751772980 26167.991242027084809 38744.967639126254653 48829.467639126254653 58604.044440185141866 67603.301503250826499 73990.157509149634279 79459.862801229435718 84548.513719853886869 89550.519702084333403 94145.236339279275853 98407.532576857280219 101788.321534347342094 104763.321534...
result:
ok 33 numbers
Test #28:
score: 0
Accepted
time: 9ms
memory: 4440kb
input:
74 5 8956 9605 3190 7576 5416 6639 7879 8211 9033 9716 8460 8450 6076 10 380 4447 524 4284 4113 6402 4110 7283 1369 274 2850 7095 4729 6699 4843 7839 9443 3779 379 8274 854 1224 1987 8247 2394 955 282 1046 1274 3019 9664 6954 4377 9561 2158 3240 3430 2628 2041 3002 832 6010 3452 7969 4190 1188 4178 ...
output:
76013.000000000000000 130945.000000000000000 183734.000000000000000 230797.500000000000000 268789.500000000000000 306136.500000000000000 333023.500000000000000 340465.000000000000000 340465.000000000000000 340465.000000000000000 340465.000000000000000 340465.000000000000000 340465.000000000000000 34...
result:
ok 74 numbers
Test #29:
score: 0
Accepted
time: 1ms
memory: 4040kb
input:
92 1 608 6771 1817 9059 7226 9984 4538 3306 7163 2719 2499 4389 2637 39 1827 8158 3361 6204 2337 9505 3724 7861 3565 2999 3606 1570 7566 9963 3605 3023 3134 4967 2251 8696 6543 3478 9846 4044 7813 3927 3504 1073 4323 2422 6589 3441 2319 2192 3939 6534 6031 4939 4169 4544 9056 9030 1957 6840 6082 169...
output:
2369.168119803545778 4737.183928262413247 7103.669537649689119 9469.687956644203950 11829.003737654584256 14187.420764511873131 16542.770655549240473 18893.873990699863498 21236.544786768296035 23571.813412308300030 25902.364586231255089 28230.820823425463459 30541.213014159038721 32847.229865104913...
result:
ok 92 numbers
Test #30:
score: 0
Accepted
time: 1ms
memory: 3860kb
input:
27 2 483 5944 8702 4674 2646 1683 7308 6705 9495 7303 3634 6769 1239 8034 991 6064 4649 3265 7837 8843 2126 6417 1009 8590 7413 517 6106 9606
output:
3827.044693969332002 7647.426081483439702 11401.632578115364595 15123.769609891065556 18743.697222435970616 22120.331051643614046 25472.545875588788476 28261.532631978763675 31027.839468955171469 33400.270009185100207 35360.828604932030430 37271.699205807322869 38876.456975983033772 40365.0540035441...
result:
ok 27 numbers
Test #31:
score: 0
Accepted
time: 1ms
memory: 3844kb
input:
43 3 79 9979 9996 9995 9949 9958 9924 9991 9969 9982 9926 9958 9958 9930 9921 9938 9996 9995 9967 9989 9925 9923 9931 9962 9951 9950 9933 9965 9960 9929 9964 9994 9969 9945 9974 9956 9977 9980 9998 9950 9946 9958 9990 9946
output:
709.500000000000000 1377.000000000000000 2040.000000000000000 2677.500000000000000 3280.500000000000000 3810.500000000000000 4151.500000000000000 4349.500000000000000 4453.500000000000000 4503.500000000000000 4523.500000000000000 4525.500000000000000 4525.813744218781721 4526.126450902816941 4526.12...
result:
ok 43 numbers
Test #32:
score: 0
Accepted
time: 14ms
memory: 4544kb
input:
100 5 8965 2260 9790 1843 4218 5731 1124 2999 8895 6982 3887 2615 4977 6819 5176 7417 1808 1659 8481 7492 4553 4965 8344 8302 9927 6821 5299 2354 5124 8719 8492 5686 5602 7707 7758 7515 1848 3040 9589 6388 5929 3671 4531 5926 1649 3502 9535 5307 1590 6360 6306 3153 5889 2226 4280 9285 9174 5276 5906...
output:
73087.000000000000000 141794.500000000000000 210009.000000000000000 272282.500000000000000 332865.500000000000000 388562.500000000000000 439813.500000000000000 491046.500000000000000 528904.000000000000000 561180.000000000000000 566106.000000000000000 566106.000000000000000 566106.000000000000000 56...
result:
ok 100 numbers
Test #33:
score: 0
Accepted
time: 44ms
memory: 5404kb
input:
198 5 9617 2616 2151 6359 456 3589 7838 3547 4268 2219 744 7341 7987 4996 1781 4934 3144 3912 6512 4906 2717 3395 1308 8348 8128 9831 678 8111 8011 5052 2068 4004 7980 2171 1042 7864 4447 3840 9851 2887 3412 6976 3753 7232 8193 8535 3110 9076 4113 6183 1082 7628 2488 2879 5908 3902 4876 1094 8656 68...
output:
68901.000000000000000 129308.000000000000000 188430.500000000000000 244981.000000000000000 300917.000000000000000 356425.500000000000000 410389.500000000000000 463564.000000000000000 514578.000000000000000 565523.500000000000000 613608.000000000000000 661683.000000000000000 708926.500000000000000 75...
result:
ok 198 numbers
Test #34:
score: 0
Accepted
time: 42ms
memory: 5528kb
input:
194 5 9518 602 1794 4699 7172 8807 8262 2310 3217 6142 2557 2027 1859 9348 7540 7730 8136 9005 6835 2531 8273 7997 8535 3195 3472 3118 1450 8215 6865 5508 9962 6499 8657 8390 7727 3539 7396 3777 1328 5973 1196 3187 3088 2010 1180 2284 6842 7513 8863 1555 8268 9210 5246 9198 3999 8896 4468 3766 4770 ...
output:
72853.500000000000000 143392.500000000000000 212733.500000000000000 281136.500000000000000 347860.000000000000000 409269.500000000000000 467980.500000000000000 526584.500000000000000 584970.500000000000000 642342.500000000000000 691719.000000000000000 739999.000000000000000 786989.500000000000000 83...
result:
ok 194 numbers
Test #35:
score: 0
Accepted
time: 37ms
memory: 5960kb
input:
200 5 391 9922 9884 9708 9845 9886 9841 9644 9694 9689 9999 9786 9910 9617 9973 9903 9892 9701 9650 9935 9683 9716 9671 9787 9774 9907 9952 9614 9775 9721 9928 9884 9979 9713 9936 9830 9733 9710 9884 9651 9623 9796 9859 9927 9967 9639 9757 9944 9689 9796 9972 9853 9990 9887 9865 9777 9812 9633 9614 ...
output:
6015.500000000000000 11965.500000000000000 17902.500000000000000 23784.500000000000000 29605.500000000000000 35357.500000000000000 41049.000000000000000 46717.500000000000000 52333.500000000000000 57879.000000000000000 63318.500000000000000 68743.500000000000000 74151.000000000000000 79490.000000000...
result:
ok 200 numbers
Extra Test:
score: 0
Extra Test Passed