QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#821770 | #8309. Mountain | Brno (Bocheng Jiang, Zhenyu Wang, Taixiang Wang)# | AC ✓ | 291ms | 8784kb | C++20 | 2.7kb | 2024-12-19 17:59:45 | 2024-12-19 17:59:46 |
Judging History
answer
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define mk make_pair
#define MID int mid=(l+r)>>1;
#define ll long long
#define endl '\n'
#define siz(a) int(a.size())
int n,W,H;
int h[210];
double f[210][1024];
double dp[2][210][1024];
vector<pair<double,double>>x;
vector<pair<int,int>>now;
void solveclr(){
}
double len(int hh,int l,int r){
if(hh<l)return 0;
return min(hh,r)-l;
}
double calc(int l,int r,int id){
if(r<l)return 0;
// cout<<l<<' '<<r<<' '<<id<<endl;
l=max(l,0);
x.clear();
x.push_back(mk(id,len(h[id],l,r)));x.push_back(mk(id+1,len(h[id+1],l,r)));
if(l<max(h[id],h[id+1])&&l>min(h[id],h[id+1])){
double t=(l-h[id])/(double)(h[id+1]-h[id]);
x.push_back(mk(id+t,len(l,l,r)));
}
if(r<max(h[id],h[id+1])&&r>min(h[id],h[id+1])){
double t=(r-h[id])/(double)(h[id+1]-h[id]);
x.push_back(mk(id+t,len(r,l,r)));
}
sort(x.begin(),x.end());
double ans=0;
for(int i=0;i+1<x.size();i++){
auto t1=x[i],t2=x[i+1];
ans+=(t2.first-t1.first)*(t2.second+t1.second)/2;
}
return ans;
}
double calc(vector<pair<int,int>>now,int id){
sort(now.begin(),now.end());
int l=0,r=-1;
double res=0;
for(auto tmp:now){
if(r==-1){
l=tmp.first,r=tmp.second;
}
else{
if(r<tmp.first){
res+=calc(l,r,id);
l=tmp.first,r=tmp.second;
}
else{
r=tmp.second;
}
}
}
res+=calc(l,r,id);
return res;
}
void solve(){
solveclr();
cin>>n>>W>>H;
for(int i=1;i<=n;i++){
cin>>h[i];
}
h[0]=h[n+1]=0;
for(int i=1;i<=n;i++){
for(int s=0;s<1024;s++){
for(int j=max(0,i-W);j<=min(i+W-1,n);j++){
now.clear();
int fl=0;
for(int k=0;k<10;k++){
if(!(s&(1<<k)))continue;
int ls=i-k-1;
if(ls<=0){
fl=1;break;
}
if(ls-W<=j&&ls+W-1>=j){
now.push_back(mk(h[ls]-H,h[ls]+H));
}
}
if(fl){
f[i][s]=-0x3f3f3f3f;break;
}
f[i][s]-=calc(now,j);
now.push_back(mk(h[i]-H,h[i]+H));
f[i][s]+=calc(now,j);
// if(s==0){
// cout<<i<<' '<<f[i][s]<<endl;
// }
}
}
}
int d=0;
for(int i=1;i<=n;i++){
memset(dp[d^1],0,sizeof(dp[d^1]));
for(int j=0;j<=n;j++){
for(int s=0;s<1024;s++){
dp[d^1][j][(s<<1)&1023]=max(dp[d^1][j][(s<<1)&1023],dp[d][j][s]);
dp[d^1][j+1][(s<<1|1)&1023]=max(dp[d^1][j+1][(s<<1|1)&1023],dp[d][j][s]+f[i][s]);
}
}
d^=1;
}
for(int j=1;j<=n;j++){
double ans=0;
for(int s=0;s<1024;s++)ans=max(ans,dp[d][j][s]);
cout<<fixed<<setprecision(15)<<ans<<endl;
}
}
int main(){
// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int TTT;
// cin>>TTT;
TTT=1;
while(TTT--)solve();
}
/*
5 1 2
100 1 100 1 100
*/
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 7408kb
input:
3 1 2 2 1 3
output:
3.500000000000000 4.500000000000000 5.166666666666666
result:
ok 3 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 7396kb
input:
2 3 78 55 51
output:
106.000000000000000 106.000000000000000
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 23ms
memory: 7440kb
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.000000000000000 1825.000000000000227 1825.000000000000227 1825.000000000000227 1825.000000000000455 1825.000...
result:
ok 36 numbers
Test #4:
score: 0
Accepted
time: 19ms
memory: 7376kb
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.893706293706288 207.523575574752044 268.609289860466333 317.591597552774033 363.690646178566794 408.373451608431083 452.223075668581373 491.392640885972696 527.928355171686917 564.419708555145576 600.419708555145576 636.368006427486080 672.310615123138291 707.847757980281244 7...
result:
ok 37 numbers
Test #5:
score: 0
Accepted
time: 63ms
memory: 7648kb
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: 92ms
memory: 7816kb
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.741488378335362 1496.432482859555421 1976.833221495919133 2434.851872555005230 2767.288561061215660 3086.778144394548690 3326.402790811059731 3508.822397136144900 3686.503313129760500 3798.706536553153455 3906.043188082966935 3956.004184459778571 3975.898561315941151 3983.88...
result:
ok 72 numbers
Test #7:
score: 0
Accepted
time: 52ms
memory: 7920kb
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: 7ms
memory: 7512kb
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.235444947209601 472.235444947209601 551.735444947209658 626.235444947209658 696.944747272791119 760.026142621628310 808.260836499179391 852.526142621628424 896.250023218643378 935.750023218643378 974.750023218643378 1004.280635463541216...
result:
ok 26 numbers
Test #9:
score: 0
Accepted
time: 2ms
memory: 7184kb
input:
2 3 49 39 54
output:
93.000000000000000 93.000000000000000
result:
ok 2 numbers
Test #10:
score: 0
Accepted
time: 43ms
memory: 7876kb
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: 56ms
memory: 7720kb
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.931200466200437 847.606796471502321 1248.606796471502321 1642.713179450225880 2019.178265089224396 2373.933838137302700 2633.984781143198234 2791.498249501081773 2882.995639828518961 2945.850247385676084 2978.667896049069441 3005.233835328006990 3014.902585638998517 3018.937500000000000 3022.000...
result:
ok 60 numbers
Test #12:
score: 0
Accepted
time: 3ms
memory: 7228kb
input:
9 3 15 41 56 23 46 34 6 34 31 36
output:
136.275098355161987 219.185812640876264 252.884225339288946 271.226287262872575 271.336043360433621 271.336043360433621 271.336043360433621 271.336043360433621 271.336043360433621
result:
ok 9 numbers
Test #13:
score: 0
Accepted
time: 14ms
memory: 7528kb
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.762402874902932 1049.194147797265487 1231.124042006431864 1408.806067427819016 1512.453840488092055 1575.004384329597087 1628.397034232885289 1667.510554046405105 1694.987826773677853 1711.020532956383931 1722.799321532397926 1724.822594805671542 1725.1776...
result:
ok 32 numbers
Test #14:
score: 0
Accepted
time: 46ms
memory: 7796kb
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.849367088607664 402.503466314504863 534.896323457362087 656.331682216250215 772.091682216250206 885.341159568166631 997.892348259535197 1107.561579028766118 1215.652488119675127 1320.912715392402333 1423.186908940789408 1525.082450576751171 1622.159472399600872 1714.171642876...
result:
ok 82 numbers
Test #15:
score: 0
Accepted
time: 15ms
memory: 7444kb
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: 2ms
memory: 7184kb
input:
2 1 62 34 61
output:
78.000000000000000 95.000000000000000
result:
ok 2 numbers
Test #17:
score: 0
Accepted
time: 12ms
memory: 7568kb
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.744180316301595 727.338774910896177 787.399750520652333 831.887407116083523 871.887407116083409 907.887407116083409 938.959908863113583 964.588878030163869 988.494283435569287 995.331892731473545 ...
result:
ok 25 numbers
Test #18:
score: 0
Accepted
time: 1ms
memory: 7160kb
input:
2 1 35 100 15
output:
50.294117647058826 63.625000000000000
result:
ok 2 numbers
Test #19:
score: 0
Accepted
time: 131ms
memory: 8040kb
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: 128ms
memory: 7880kb
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: 3ms
memory: 7452kb
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: 75ms
memory: 7636kb
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: 2ms
memory: 7228kb
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: 109ms
memory: 7868kb
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.093032031087205 133631.698416446277406 174702.180104643077357 215514.785450183175271 254967.660983236448374 284350.048517503077164 307342.957765010709409 329421.048505516024306 348502.922364181606099 361941.914770639268681 374846.496701109863352 387302.496701109863352 395...
result:
ok 84 numbers
Test #25:
score: 0
Accepted
time: 4ms
memory: 7536kb
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.072738936374662 98341.572738936374662 105242.072738936374662 106422.502016607351834 106606.502016607351834 106606.502016607351834 106606.502016607351834 106606.502016607351834 106606.502016607351834 106606.502016607351834 106606...
result:
ok 21 numbers
Test #26:
score: 0
Accepted
time: 26ms
memory: 7900kb
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: 13ms
memory: 7564kb
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.384003751771161 26167.991242027084809 38744.967639126254653 48829.467639126254653 58604.044440185134590 67603.301503250811948 73990.157509149619727 79459.862801229421166 84548.513719853872317 89550.519702084318851 94145.236339279261301 98407.532576857265667 101788.321534347356646 104763.321534...
result:
ok 33 numbers
Test #28:
score: 0
Accepted
time: 87ms
memory: 7828kb
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: 28ms
memory: 8012kb
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.669537649686390 9469.687956644200312 11829.003737654582437 14187.420764511873131 16542.770655549240473 18893.873990699859860 21236.544786768296035 23571.813412308292754 25902.364586231247813 28230.820823425456183 30541.213014159031445 32847.229865104905...
result:
ok 92 numbers
Test #30:
score: 0
Accepted
time: 13ms
memory: 7280kb
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.044693969332457 7647.426081483439702 11401.632578115364595 15123.769609891063737 18743.697222435970616 22120.331051643614046 25472.545875588788476 28261.532631978770951 31027.839468955178745 33400.270009185100207 35360.828604932030430 37271.699205807337421 38876.456975983048324 40365.0540035441...
result:
ok 27 numbers
Test #31:
score: 0
Accepted
time: 23ms
memory: 7492kb
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.126450902818760 4526.12...
result:
ok 43 numbers
Test #32:
score: 0
Accepted
time: 129ms
memory: 8000kb
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: 288ms
memory: 8784kb
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: 276ms
memory: 8712kb
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: 291ms
memory: 8764kb
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