#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
unordered_map<double, double> m;
m[-35.3] = -0.0140846;
m[-35.2] = 0.00704215;
m[-34.9] = 0.00528168;
m[-34.8] = 0.00352121;
m[-34.4] = 0.0140844;
m[-34.3] = 0;
m[-34.1] = -0.083682;
m[-34] = 0.0140846;
m[-33.9] = 0.00352107;
m[-33.8] = 0.00352121;
m[-33.6] = 0.0209205;
m[-33.5] = 0.00916841;
m[-33.4] = 0.00106606;
m[-33.3] = -0.0845068;
m[-33.1] = 0.0105635;
m[-33] = -0.0217954;
m[-32.9] = 0.0140843;
m[-32.8] = -0.036036;
m[-32.7] = -0.134191;
m[-32.6] = 0.0137281;
m[-32.4] = 0.0246093;
m[-32.2] = 0.0199247;
m[-32] = 0.0152054;
m[-31.9] = 0.0161317;
m[-31.8] = -0.0360943;
m[-31.7] = -0.0132451;
m[-31.6] = 0.0025773;
m[-31.5] = 0.00515463;
m[-31.4] = 0.00343644;
m[-31.3] = -0.0166428;
m[-31.2] = 0.00713523;
m[-31.1] = 0.0456652;
m[-31] = 0.0209796;
m[-30.9] = 0.0256953;
m[-30.8] = 0.0189111;
m[-30.7] = -0.0339235;
m[-30.6] = 0.0169618;
m[-30.5] = 0.00797595;
m[-30.4] = 0.0198842;
m[-30.3] = -0.00224539;
m[-30.2] = -0.000182417;
m[-30.1] = -0.0033344;
m[-30] = -0.0220188;
m[-29.9] = 0.0156303;
m[-29.8] = 0.0107767;
m[-29.7] = 0.0105094;
m[-29.6] = 0.0212063;
m[-29.5] = 0.0166272;
m[-29.4] = 0.0145973;
m[-29.3] = 0.0164244;
m[-29.2] = -0.0101396;
m[-29.1] = 0.0262506;
m[-29] = 0.0260867;
m[-28.9] = 0.0208733;
m[-28.8] = 0.0355566;
m[-28.7] = 0.0499305;
m[-28.6] = 0.0232462;
m[-28.5] = -0.040235;
m[-28.4] = 0.00105287;
m[-28.3] = 0.0188285;
m[-28.2] = 0.0175379;
m[-28.1] = 0.00773775;
m[-28] = -0.0521696;
m[-27.9] = 0.00820793;
m[-27.8] = 0.00529074;
m[-27.7] = 0.0174064;
m[-27.6] = 0.0104767;
m[-27.5] = 0.0045191;
m[-27.4] = 0.0261535;
m[-27.3] = 0.0231206;
m[-27.2] = 0.00492963;
m[-27.1] = 0.0103684;
m[-27] = 0.00250479;
m[-26.9] = 0.0211374;
m[-26.8] = -0.0298298;
m[-26.7] = 0.0228103;
m[-26.6] = 0.0077676;
m[-26.5] = -0.011109;
m[-26.4] = 0.0202789;
m[-26.3] = -0.0196723;
m[-26.2] = 0.00744585;
m[-26.1] = -0.00639965;
m[-26] = -0.0433063;
m[-25.9] = 0.0161222;
m[-25.8] = 0.022312;
m[-25.7] = -0.000215966;
m[-25.6] = 0.00149553;
m[-25.5] = 0.024535;
m[-25.4] = 0.00231337;
m[-25.3] = 0.0243327;
m[-25.2] = 0.00440661;
m[-25.1] = 0.0205889;
m[-25] = -0.00243831;
m[-24.9] = -0.0135024;
m[-24.8] = 0.0192038;
m[-24.7] = 0.0359108;
m[-24.6] = 0.0049901;
m[-24.5] = -0.0233643;
m[-24.4] = 0.0312486;
m[-24.3] = 0.00946445;
m[-24.2] = 0.0118168;
m[-24.1] = 0.0267307;
m[-24] = 0.0261332;
m[-23.9] = 0.0231886;
m[-23.8] = 0.0018466;
m[-23.7] = 0.0477131;
m[-23.6] = 0.0270938;
m[-23.5] = 0.0204073;
m[-23.4] = -0.00125998;
m[-23.3] = 0.00228748;
m[-23.2] = -0.0211561;
m[-23.1] = 0.0111264;
m[-23] = 0.0145131;
m[-22.9] = 0.0136221;
m[-22.8] = 0.0238393;
m[-22.7] = 0.00801098;
m[-22.6] = 0.0217533;
m[-22.5] = 0.0255642;
m[-22.4] = -0.0200097;
m[-22.3] = -0.0119486;
m[-22.2] = 0.0116226;
m[-22.1] = 0.000766811;
m[-22] = -0.00658752;
m[-21.9] = 0.0263036;
m[-21.8] = 0.00801415;
m[-21.7] = -0.0257683;
m[-21.6] = -0.00714923;
m[-21.5] = -0.00356268;
m[-21.4] = 0.00944224;
m[-21.3] = 0.0147056;
m[-21.2] = 0.00423747;
m[-21.1] = -0.0152732;
m[-21] = -0.011378;
m[-20.9] = 0.00482034;
m[-20.8] = 0.0107603;
m[-20.7] = 0.0201925;
m[-20.6] = 0.0176225;
m[-20.5] = -0.00348937;
m[-20.4] = -0.00905526;
m[-20.3] = 0.042555;
m[-20.2] = 0.0199627;
m[-20.1] = 0.0177324;
m[-20] = 0.0278441;
m[-19.9] = 0.0151968;
m[-19.8] = 0.0258563;
m[-19.7] = 0.0158432;
m[-19.6] = 0.0212488;
m[-19.5] = 0.00808692;
m[-19.4] = -0.0223822;
m[-19.3] = 0.0149575;
m[-19.2] = -0.00138015;
m[-19.1] = 0.0131819;
m[-19] = 0.0104361;
m[-18.9] = 0.013299;
m[-18.8] = 0.0283401;
m[-18.7] = 0.00262189;
m[-18.6] = 0.00943526;
m[-18.5] = -0.00830976;
m[-18.4] = 0.0268334;
m[-18.3] = 5.85291e-05;
m[-18.2] = 0.0175242;
m[-18.1] = 0.0122572;
m[-18] = 0.00566742;
m[-17.9] = 0.020824;
m[-17.8] = 0.0297011;
m[-17.7] = 0.0299991;
m[-17.6] = 0.0168718;
m[-17.5] = -0.00961194;
m[-17.4] = 0.0249394;
m[-17.3] = 0.0417112;
m[-17.2] = 0.0035853;
m[-17.1] = 0.0286377;
m[-17] = 0.010627;
m[-16.9] = 0.0286937;
m[-16.8] = 0.00772772;
m[-16.7] = 0.0114242;
m[-16.6] = 0.0150938;
m[-16.5] = 0.0105864;
m[-16.4] = 0.016662;
m[-16.3] = 0.0203282;
m[-16.2] = -0.0111596;
m[-16.1] = 0.0130446;
m[-16] = 0.0382093;
m[-15.9] = 0.0106647;
m[-15.8] = 0.00439146;
m[-15.7] = 0.00336877;
m[-15.6] = 0.034399;
m[-15.5] = 0.0043058;
m[-15.4] = 0.0177912;
m[-15.3] = 0.0253989;
m[-15.2] = 0.027783;
m[-15.1] = 0.0334176;
m[-15] = 0.00277802;
m[-14.9] = 0.0120797;
m[-14.8] = 0.0207551;
m[-14.7] = 0.00791358;
m[-14.6] = 0.00653203;
m[-14.5] = 0.0150705;
m[-14.4] = 0.0189099;
m[-14.3] = 0.00848346;
m[-14.2] = 0.00383187;
m[-14.1] = 0.00857916;
m[-14] = 0.0108383;
m[-13.9] = 0.0176948;
m[-13.8] = 0.0194339;
m[-13.7] = 0.0208473;
m[-13.6] = 0.00987727;
m[-13.5] = 0.00191382;
m[-13.4] = 0.0219433;
m[-13.3] = 0.0149855;
m[-13.2] = 0.0357883;
m[-13.1] = 0.0148094;
m[-13] = 0.0134656;
m[-12.9] = 0.0297023;
m[-12.8] = 0.006563;
m[-12.7] = 0.0296556;
m[-12.6] = 0.0189926;
m[-12.5] = 0.016984;
m[-12.4] = 0.0242387;
m[-12.3] = 0.0223077;
m[-12.2] = 0.0119782;
m[-12.1] = 0.00937282;
m[-12] = 0.00912374;
m[-11.9] = 0.0121058;
m[-11.8] = 0.012888;
m[-11.7] = 0.023199;
m[-11.6] = 0.00202721;
m[-11.5] = 0.0293285;
m[-11.4] = 0.0331193;
m[-11.3] = 0.0356604;
m[-11.2] = 0.0296107;
m[-11.1] = 0.0376717;
m[-11] = 0.0315117;
m[-10.9] = 0.0243008;
m[-10.8] = 0.0207655;
m[-10.7] = 0.0104247;
m[-10.6] = 0.0308097;
m[-10.5] = 0.0184355;
m[-10.4] = 0.0206801;
m[-10.3] = 0.0139934;
m[-10.2] = 0.017837;
m[-10.1] = 0.0252389;
m[-10] = 0.0316398;
m[-9.9] = 0.00858151;
m[-9.8] = 0.0130783;
m[-9.7] = 0.02243;
m[-9.6] = 0.0224359;
m[-9.5] = 0.0253275;
m[-9.4] = 0.0192817;
m[-9.3] = 0.0201543;
m[-9.2] = 0.0181731;
m[-9.1] = 0.0265203;
m[-9] = 0.0159019;
m[-8.9] = 0.0140585;
m[-8.8] = 0.0197749;
m[-8.7] = 0.019126;
m[-8.6] = 0.0192;
m[-8.5] = 0.0149809;
m[-8.4] = 0.0167758;
m[-8.3] = 0.0164511;
m[-8.2] = 0.0227598;
m[-8.1] = 0.0218789;
m[-8] = 0.0299482;
m[-7.9] = 0.0147978;
m[-7.8] = 0.00441932;
m[-7.7] = 0.0313675;
m[-7.6] = 0.0091453;
m[-7.5] = 0.0245714;
m[-7.4] = 0.0164496;
m[-7.3] = 0.0286341;
m[-7.2] = 0.0247261;
m[-7.1] = 0.0141999;
m[-7] = 0.0144276;
m[-6.9] = 0.0100129;
m[-6.8] = 0.0243933;
m[-6.7] = 0.0241689;
m[-6.6] = 0.0213544;
m[-6.5] = 0.0205397;
m[-6.4] = 0.0209214;
m[-6.3] = 0.0104761;
m[-6.2] = 0.0176072;
m[-6.1] = 0.0180696;
m[-6] = 0.0233734;
m[-5.9] = 0.0215182;
m[-5.8] = 0.0177664;
m[-5.7] = 0.019383;
m[-5.6] = 0.0150559;
m[-5.5] = 0.0158036;
m[-5.4] = 0.0146397;
m[-5.3] = 0.0202645;
m[-5.2] = 0.0123686;
m[-5.1] = 0.0221051;
m[-5] = 0.0185383;
m[-4.9] = 0.00954989;
m[-4.8] = 0.019418;
m[-4.7] = 0.0197801;
m[-4.6] = 0.0198786;
m[-4.5] = 0.018991;
m[-4.4] = 0.0252153;
m[-4.3] = 0.0226839;
m[-4.2] = 0.0286763;
m[-4.1] = 0.0238503;
m[-4] = 0.0181452;
m[-3.9] = 0.0174858;
m[-3.8] = 0.0254987;
m[-3.7] = 0.0158751;
m[-3.6] = 0.0144575;
m[-3.5] = 0.0200965;
m[-3.4] = 0.0185748;
m[-3.3] = 0.0164083;
m[-3.2] = 0.0196916;
m[-3.1] = 0.0240413;
m[-3] = 0.01166;
m[-2.9] = 0.00809159;
m[-2.8] = 0.0140369;
m[-2.7] = 0.0208526;
m[-2.6] = 0.0175458;
m[-2.5] = 0.016673;
m[-2.4] = 0.0160136;
m[-2.3] = 0.0139019;
m[-2.2] = 0.0118206;
m[-2.1] = 0.0174696;
m[-2] = 0.0190777;
m[-1.9] = 0.0194465;
m[-1.8] = 0.0159666;
m[-1.7] = 0.0218103;
m[-1.6] = 0.0131246;
m[-1.5] = 0.0149516;
m[-1.4] = 0.0136686;
m[-1.3] = 0.0223299;
m[-1.2] = 0.0161849;
m[-1.1] = 0.0212749;
m[-1] = 0.0192836;
m[-0.9] = 0.0184625;
m[-0.8] = 0.0213145;
m[-0.7] = 0.0177184;
m[-0.6] = 0.0179849;
m[-0.5] = 0.014737;
m[-0.4] = 0.0199359;
m[-0.3] = 0.0129511;
m[-0.2] = 0.019761;
m[-0.1] = 0.0187206;
m[0] = 0.0157563;
m[0.1] = 0.0188134;
m[0.2] = 0.0111616;
m[0.3] = 0.0146292;
m[0.4] = 0.0141419;
m[0.5] = 0.0208397;
m[0.6] = 0.023562;
m[0.7] = 0.0207081;
m[0.8] = 0.0202444;
m[0.9] = 0.0190278;
m[1] = 0.0208367;
m[1.1] = 0.0280272;
m[1.2] = 0.0231102;
m[1.3] = 0.0305388;
m[1.4] = 0.0261689;
m[1.5] = 0.0196669;
m[1.6] = 0.0264046;
m[1.7] = 0.0250461;
m[1.8] = 0.0220717;
m[1.9] = 0.027667;
m[2] = 0.0237034;
m[2.1] = 0.0286809;
m[2.2] = 0.0300368;
m[2.3] = 0.0250207;
m[2.4] = 0.0253902;
m[2.5] = 0.0225664;
m[2.6] = 0.0331569;
m[2.7] = 0.0191362;
m[2.8] = 0.0240022;
m[2.9] = 0.0285093;
m[3] = 0.0332856;
m[3.1] = 0.0215096;
m[3.2] = 0.0270224;
m[3.3] = 0.0271335;
m[3.4] = 0.0313862;
m[3.5] = 0.0299043;
m[3.6] = 0.030369;
m[3.7] = 0.0268022;
m[3.8] = 0.0294231;
m[3.9] = 0.0290256;
m[4] = 0.0212299;
m[4.1] = 0.0326078;
m[4.2] = 0.0298059;
m[4.3] = 0.0285073;
m[4.4] = 0.0366435;
m[4.5] = 0.0362871;
m[4.6] = 0.0249104;
m[4.7] = 0.0365613;
m[4.8] = 0.0309721;
m[4.9] = 0.0292327;
m[5] = 0.0255104;
m[5.1] = 0.0302021;
m[5.2] = 0.0288713;
m[5.3] = 0.0343686;
m[5.4] = 0.0240736;
m[5.5] = 0.0314229;
m[5.6] = 0.0155573;
m[5.7] = 0.0387668;
m[5.8] = 0.0289229;
m[5.9] = 0.0302575;
m[6] = 0.0222776;
m[6.1] = 0.0304001;
m[6.2] = 0.031062;
m[6.3] = 0.0301738;
m[6.4] = 0.0320897;
m[6.5] = 0.0149625;
m[6.6] = 0.0283077;
m[6.7] = 0.0286827;
m[6.8] = 0.0245767;
m[6.9] = 0.0342454;
m[7] = 0.0281128;
m[7.1] = 0.0355331;
m[7.2] = 0.0302872;
m[7.3] = 0.027846;
m[7.4] = 0.0274143;
m[7.5] = 0.0259862;
m[7.6] = 0.0307424;
m[7.7] = 0.0314899;
m[7.8] = 0.027293;
m[7.9] = 0.0350958;
m[8] = 0.0250516;
m[8.1] = 0.0304995;
m[8.2] = 0.0262422;
m[8.3] = 0.0278628;
m[8.4] = 0.0297693;
m[8.5] = 0.0217122;
m[8.6] = 0.0220568;
m[8.7] = 0.0204435;
m[8.8] = 0.0146251;
m[8.9] = 0.0239097;
m[9] = 0.0260609;
m[9.1] = 0.0185058;
m[9.2] = 0.0252029;
m[9.3] = 0.027249;
m[9.4] = 0.0263214;
m[9.5] = 0.0296879;
m[9.6] = 0.0291098;
m[9.7] = 0.0258826;
m[9.8] = 0.0186683;
m[9.9] = 0.026195;
m[10] = 0.0274955;
m[10.1] = 0.0303531;
m[10.2] = 0.0261917;
m[10.3] = 0.0222114;
m[10.4] = 0.0281945;
m[10.5] = 0.0310644;
m[10.6] = 0.0244668;
m[10.7] = 0.0323231;
m[10.8] = 0.0268016;
m[10.9] = 0.0269621;
m[11] = 0.0311373;
m[11.1] = 0.0273826;
m[11.2] = 0.028094;
m[11.3] = 0.0229648;
m[11.4] = 0.0271374;
m[11.5] = 0.0300087;
m[11.6] = 0.0299028;
m[11.7] = 0.0339644;
m[11.8] = 0.0308796;
m[11.9] = 0.0306977;
m[12] = 0.0273916;
m[12.1] = 0.0268248;
m[12.2] = 0.0336144;
m[12.3] = 0.0293082;
m[12.4] = 0.0314577;
m[12.5] = 0.0236489;
m[12.6] = 0.0332656;
m[12.7] = 0.0256782;
m[12.8] = 0.0248464;
m[12.9] = 0.0297259;
m[13] = 0.0284383;
m[13.1] = 0.0323181;
m[13.2] = 0.0230945;
m[13.3] = 0.0319468;
m[13.4] = 0.0257527;
m[13.5] = 0.029837;
m[13.6] = 0.0271235;
m[13.7] = 0.0298959;
m[13.8] = 0.0323744;
m[13.9] = 0.0316813;
m[14] = 0.028536;
m[14.1] = 0.0345903;
m[14.2] = 0.0265586;
m[14.3] = 0.0294422;
m[14.4] = 0.0341161;
m[14.5] = 0.0381609;
m[14.6] = 0.0354411;
m[14.7] = 0.034912;
m[14.8] = 0.0267492;
m[14.9] = 0.033406;
m[15] = 0.0331977;
m[15.1] = 0.0360399;
m[15.2] = 0.0341214;
m[15.3] = 0.026914;
m[15.4] = 0.0407595;
m[15.5] = 0.0390104;
m[15.6] = 0.0323422;
m[15.7] = 0.0326363;
m[15.8] = 0.0393227;
m[15.9] = 0.0351931;
m[16] = 0.0396864;
m[16.1] = 0.0436293;
m[16.2] = 0.0427993;
m[16.3] = 0.0404266;
m[16.4] = 0.0380941;
m[16.5] = 0.0378684;
m[16.6] = 0.0405074;
m[16.7] = 0.0382678;
m[16.8] = 0.0388755;
m[16.9] = 0.0397612;
m[17] = 0.0474735;
m[17.1] = 0.03839;
m[17.2] = 0.0490421;
m[17.3] = 0.0536093;
m[17.4] = 0.0469826;
m[17.5] = 0.0479448;
m[17.6] = 0.0461627;
m[17.7] = 0.0543961;
m[17.8] = 0.0526948;
m[17.9] = 0.0458622;
m[18] = 0.0530802;
m[18.1] = 0.0390688;
m[18.2] = 0.0436327;
m[18.3] = 0.04692;
m[18.4] = 0.0435754;
m[18.5] = 0.0485038;
m[18.6] = 0.0481423;
m[18.7] = 0.0506901;
m[18.8] = 0.049051;
m[18.9] = 0.0402391;
m[19] = 0.0542385;
m[19.1] = 0.0509543;
m[19.2] = 0.0532754;
m[19.3] = 0.047063;
m[19.4] = 0.0481488;
m[19.5] = 0.0489303;
m[19.6] = 0.0568179;
m[19.7] = 0.0473424;
m[19.8] = 0.0548728;
m[19.9] = 0.0473353;
m[20] = 0.0462386;
m[20.1] = 0.0587293;
m[20.2] = 0.0512911;
m[20.3] = 0.0443287;
m[20.4] = 0.0540212;
m[20.5] = 0.055906;
m[20.6] = 0.0468384;
m[20.7] = 0.0569057;
m[20.8] = 0.0526144;
m[20.9] = 0.0546099;
m[21] = 0.052643;
m[21.1] = 0.0522828;
m[21.2] = 0.0507133;
m[21.3] = 0.0433829;
m[21.4] = 0.0494944;
m[21.5] = 0.0514883;
m[21.6] = 0.0538796;
m[21.7] = 0.0429557;
m[21.8] = 0.0526722;
m[21.9] = 0.0617711;
m[22] = 0.0516509;
m[22.1] = 0.0526572;
m[22.2] = 0.0556886;
m[22.3] = 0.0595042;
m[22.4] = 0.0488522;
m[22.5] = 0.0401082;
m[22.6] = 0.0524735;
m[22.7] = 0.0424362;
m[22.8] = 0.0529038;
m[22.9] = 0.0471995;
m[23] = 0.0578347;
m[23.1] = 0.0703422;
m[23.2] = 0.0563963;
m[23.3] = 0.0599879;
m[23.4] = 0.051562;
m[23.5] = 0.0508585;
m[23.6] = 0.0389248;
m[23.7] = 0.0507123;
m[23.8] = 0.0365668;
m[23.9] = 0.0489739;
m[24] = 0.0424256;
m[24.1] = 0.0580002;
m[24.2] = 0.0684785;
m[24.3] = 0.0631346;
m[24.4] = 0.0500998;
m[24.5] = 0.0582815;
m[24.6] = 0.0555814;
m[24.7] = 0.0523349;
m[24.8] = 0.0736972;
m[24.9] = 0.0494866;
m[25] = 0.063783;
m[25.1] = 0.039697;
m[25.2] = 0.0363379;
m[25.3] = 0.0505195;
m[25.4] = 0.0592486;
m[25.5] = 0.0403141;
m[25.6] = 0.0737536;
m[25.7] = 0.0630995;
m[25.8] = 0.0781009;
m[25.9] = 0.0410685;
m[26] = 0.0504164;
m[26.1] = 0.0366116;
m[26.2] = 0.0328258;
m[26.3] = 0.0552136;
m[26.4] = 0.064547;
m[26.5] = 0.0974622;
m[26.6] = 0.0646726;
m[26.7] = 0.0555813;
m[26.8] = 0.0227827;
m[26.9] = 0.0543471;
m[27] = 0.0394144;
m[27.1] = 0.0474517;
m[27.2] = 0.0440871;
m[27.3] = 0.0390089;
m[27.4] = 0.0875863;
m[27.5] = 0.061251;
m[27.6] = 0.0323685;
m[27.7] = 0.0292847;
m[27.8] = 0.0599007;
m[27.9] = 0.034029;
m[28] = 0.0728036;
m[28.1] = 0.0595797;
m[28.2] = 0.0407934;
m[28.3] = 0.0333286;
m[28.4] = 0.042786;
m[28.5] = 0.0523372;
m[28.6] = 0.0537668;
m[28.7] = 0.0389144;
m[28.8] = 0.0593711;
m[28.9] = 0.0446054;
m[29] = 0.0297996;
m[29.1] = 0.0514911;
m[29.2] = 0.0361588;
m[29.3] = 0.0334313;
m[29.4] = 0.0467622;
m[29.5] = 0.0238384;
m[29.6] = 0.0369088;
m[29.7] = 0.0385963;
m[29.8] = 0.0238095;
m[29.9] = 0.0307241;
m[30] = 0.0366985;
m[30.1] = 0.0549206;
m[30.3] = 0.0308056;
m[30.4] = 0.0196422;
m[30.5] = 0.015873;
m[30.7] = 0.0183246;
m[30.8] = 0.076923;
m[30.9] = 0.0514083;
m[31] = 0.0771605;
m[31.2] = 0.0370371;
m[31.3] = 0.00925924;
m[31.4] = 0.0428447;
m[31.5] = 0.00617286;
m[31.6] = 0.00617286;
m[31.7] = 0.0425569;
m[32.2] = 0.0135135;
m[32.7] = 0.027027;
m[33.1] = 0.125654;
int n;
cin >> n;
while(n--){
double t[24], alin = 1e9, ylin = -1e9;
for(int i = 0; i < 24; i++){
cin >> t[i];
alin = min(alin, t[i]);
ylin = max(ylin, t[i]);
}
float vaihtelu = (ylin - alin);
// milloin lasku alkaa
int alku = 1e9;
for(int i = 0; i < 36; i++){
if(t[i] > t[i+1] && t[i+1] > t[i+2]){
alku = i;
break;
}
}
// milloin lasku loppuu
int loppu = 1e9;
for(int i = alku; i < 36; i++){
if(t[i] < t[i+1] && t[i+1] < t[i+2]){
loppu = i;
break;
}
}
int pituus = loppu - alku;
int keskikohta = pituus / 2;
if(vaihtelu <= 0.5){
for(int i = 0; i < 12; i++) cout << alin << " ";
cout << "\n";
continue;
}
int q = vaihtelu - 1;
double x = t[23];
for(int i = 0; i < 12; i++){
if(i < 12 - q){
x -= m[round(x * 10) / 10] * (vaihtelu * (2 - (abs(keskikohta - i) / keskikohta)));
cout << round(x * 10) / 10 << " ";
}
else cout << "? ";
}
cout << "\n";
}
}