CSES - Datatähti 2024 alku - Results
Submission details
Task:Säähavainnot
Sender:MikaelM
Submission time:2023-11-12 11:24:54 +0200
Language:C++ (C++17)
Status:READY
Result:64
Feedback
groupverdictscore
#1ACCEPTED64
Test results
testverdicttimescore
#1ACCEPTED0.02 s8.25details
#2ACCEPTED0.02 s8.5details
#3ACCEPTED0.02 s8details
#4ACCEPTED0.02 s8.25details
#5ACCEPTED0.02 s8.25details
#6ACCEPTED0.02 s7.75details
#7ACCEPTED0.02 s7.13details
#8ACCEPTED0.02 s7.88details

Code

#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;
    unordered_map<double, int> laskee;
    
    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;

    laskee[-33] = 9;
    laskee[-32.9] = 6;
    laskee[-32.5] = 21;
    laskee[-31.1] = 0;
    laskee[-30.8] = 13;
    laskee[-30.5] = 4;
    laskee[-30.2] = 24;
    laskee[-28.7] = 0;
    laskee[-28.6] = 2;
    laskee[-28.5] = 12;
    laskee[-27.3] = 0;
    laskee[-26.8] = 9;
    laskee[-26.2] = 0;
    laskee[-25.8] = 0;
    laskee[-25.5] = 0;
    laskee[-25.4] = 23;
    laskee[-25.1] = 10;
    laskee[-24.7] = 0;
    laskee[-24.5] = 1;
    laskee[-24.4] = 3;
    laskee[-24.2] = 0;
    laskee[-24.1] = 0;
    laskee[-23.9] = 2;
    laskee[-23.7] = 0;
    laskee[-23.6] = 2;
    laskee[-23.5] = 0;
    laskee[-23.3] = 0;
    laskee[-22.6] = 4;
    laskee[-22.4] = 23;
    laskee[-22.2] = 0;
    laskee[-21.9] = 0;
    laskee[-21.8] = 5;
    laskee[-21.7] = 1;
    laskee[-21.6] = 0;
    laskee[-21.3] = 1;
    laskee[-21.1] = 23;
    laskee[-20.8] = 0;
    laskee[-20.6] = 6;
    laskee[-20.5] = 14;
    laskee[-20.4] = 7;
    laskee[-20.3] = 3;
    laskee[-20.2] = 0;
    laskee[-20.1] = 4;
    laskee[-20] = 2;
    laskee[-19.9] = 0;
    laskee[-19.7] = 0;
    laskee[-19.6] = 4;
    laskee[-19.5] = 0;
    laskee[-19.4] = 4;
    laskee[-19.3] = 3;
    laskee[-19.2] = 0;
    laskee[-19.1] = 11;
    laskee[-19] = 0;
    laskee[-18.8] = 2;
    laskee[-18.7] = 1;
    laskee[-18.6] = 14;
    laskee[-18.4] = 3;
    laskee[-18.3] = 3;
    laskee[-18.2] = 15;
    laskee[-18.1] = 6;
    laskee[-18] = 0;
    laskee[-17.9] = 0;
    laskee[-17.8] = 15;
    laskee[-17.7] = 0;
    laskee[-17.5] = 1;
    laskee[-17.4] = 15;
    laskee[-17.3] = 0;
    laskee[-17.2] = 31;
    laskee[-17.1] = 0;
    laskee[-16.9] = 0;
    laskee[-16.7] = 5;
    laskee[-16.6] = 0;
    laskee[-16.5] = 0;
    laskee[-16.4] = 2;
    laskee[-16.3] = 6;
    laskee[-16.2] = 1;
    laskee[-16.1] = 0;
    laskee[-16] = 21;
    laskee[-15.9] = 0;
    laskee[-15.7] = 1;
    laskee[-15.6] = 2;
    laskee[-15.3] = 16;
    laskee[-15.2] = 17;
    laskee[-15.1] = 9;
    laskee[-15] = 15;
    laskee[-14.9] = 11;
    laskee[-14.8] = 8;
    laskee[-14.7] = 4;
    laskee[-14.5] = 6;
    laskee[-14.4] = 5;
    laskee[-14.3] = 6;
    laskee[-14.2] = 10;
    laskee[-14.1] = 4;
    laskee[-14] = 3;
    laskee[-13.9] = 8;
    laskee[-13.8] = 3;
    laskee[-13.7] = 3;
    laskee[-13.6] = 8;
    laskee[-13.5] = 7;
    laskee[-13.4] = 6;
    laskee[-13.3] = 3;
    laskee[-13.2] = 1;
    laskee[-13.1] = 9;
    laskee[-13] = 1;
    laskee[-12.9] = 4;
    laskee[-12.8] = 5;
    laskee[-12.7] = 7;
    laskee[-12.6] = 2;
    laskee[-12.5] = 5;
    laskee[-12.4] = 8;
    laskee[-12.3] = 1;
    laskee[-12.2] = 1;
    laskee[-12.1] = 3;
    laskee[-12] = 2;
    laskee[-11.9] = 0;
    laskee[-11.8] = 11;
    laskee[-11.7] = 0;
    laskee[-11.6] = 4;
    laskee[-11.5] = 0;
    laskee[-11.4] = 1;
    laskee[-11.3] = 7;
    laskee[-11.2] = 3;
    laskee[-11.1] = 3;
    laskee[-11] = 1;
    laskee[-10.9] = 0;
    laskee[-10.8] = 6;
    laskee[-10.7] = 3;
    laskee[-10.6] = 2;
    laskee[-10.5] = 3;
    laskee[-10.4] = 3;
    laskee[-10.3] = 0;
    laskee[-10.2] = 1;
    laskee[-10.1] = 1;
    laskee[-10] = 0;
    laskee[-9.9] = 1;
    laskee[-9.8] = 2;
    laskee[-9.7] = 3;
    laskee[-9.6] = 1;
    laskee[-9.5] = 2;
    laskee[-9.4] = 4;
    laskee[-9.3] = 2;
    laskee[-9.2] = 4;
    laskee[-9.1] = 2;
    laskee[-9] = 5;
    laskee[-8.9] = 6;
    laskee[-8.8] = 7;
    laskee[-8.7] = 9;
    laskee[-8.6] = 7;
    laskee[-8.5] = 5;
    laskee[-8.4] = 3;
    laskee[-8.3] = 3;
    laskee[-8.2] = 2;
    laskee[-8.1] = 10;
    laskee[-8] = 5;
    laskee[-7.9] = 0;
    laskee[-7.8] = 3;
    laskee[-7.7] = 1;
    laskee[-7.6] = 2;
    laskee[-7.5] = 3;
    laskee[-7.4] = 3;
    laskee[-7.3] = 2;
    laskee[-7.2] = 5;
    laskee[-7.1] = 4;
    laskee[-7] = 8;
    laskee[-6.9] = 1;
    laskee[-6.8] = 1;
    laskee[-6.7] = 5;
    laskee[-6.6] = 7;
    laskee[-6.5] = 2;
    laskee[-6.4] = 8;
    laskee[-6.3] = 6;
    laskee[-6.2] = 4;
    laskee[-6.1] = 3;
    laskee[-6] = 3;
    laskee[-5.9] = 3;
    laskee[-5.8] = 4;
    laskee[-5.7] = 6;
    laskee[-5.6] = 7;
    laskee[-5.5] = 4;
    laskee[-5.4] = 2;
    laskee[-5.3] = 6;
    laskee[-5.2] = 3;
    laskee[-5.1] = 4;
    laskee[-5] = 2;
    laskee[-4.9] = 6;
    laskee[-4.8] = 4;
    laskee[-4.7] = 3;
    laskee[-4.6] = 0;
    laskee[-4.5] = 2;
    laskee[-4.4] = 6;
    laskee[-4.3] = 3;
    laskee[-4.2] = 4;
    laskee[-4.1] = 4;
    laskee[-4] = 4;
    laskee[-3.9] = 5;
    laskee[-3.8] = 4;
    laskee[-3.7] = 3;
    laskee[-3.6] = 9;
    laskee[-3.5] = 1;
    laskee[-3.4] = 5;
    laskee[-3.3] = 4;
    laskee[-3.2] = 5;
    laskee[-3.1] = 2;
    laskee[-3] = 3;
    laskee[-2.9] = 5;
    laskee[-2.8] = 5;
    laskee[-2.7] = 4;
    laskee[-2.6] = 4;
    laskee[-2.5] = 4;
    laskee[-2.4] = 6;
    laskee[-2.3] = 4;
    laskee[-2.2] = 5;
    laskee[-2.1] = 4;
    laskee[-2] = 5;
    laskee[-1.9] = 4;
    laskee[-1.8] = 4;
    laskee[-1.7] = 6;
    laskee[-1.6] = 4;
    laskee[-1.5] = 4;
    laskee[-1.4] = 2;
    laskee[-1.3] = 5;
    laskee[-1.2] = 5;
    laskee[-1.1] = 3;
    laskee[-1] = 5;
    laskee[-0.9] = 4;
    laskee[-0.8] = 3;
    laskee[-0.7] = 3;
    laskee[-0.6] = 5;
    laskee[-0.5] = 5;
    laskee[-0.4] = 3;
    laskee[-0.3] = 3;
    laskee[-0.2] = 4;
    laskee[-0.1] = 5;
    laskee[0] = 4;
    laskee[0.1] = 4;
    laskee[0.2] = 8;
    laskee[0.3] = 6;
    laskee[0.4] = 3;
    laskee[0.5] = 4;
    laskee[0.6] = 5;
    laskee[0.7] = 5;
    laskee[0.8] = 4;
    laskee[0.9] = 4;
    laskee[1] = 2;
    laskee[1.1] = 3;
    laskee[1.2] = 4;
    laskee[1.3] = 6;
    laskee[1.4] = 3;
    laskee[1.5] = 4;
    laskee[1.6] = 4;
    laskee[1.7] = 3;
    laskee[1.8] = 2;
    laskee[1.9] = 3;
    laskee[2] = 3;
    laskee[2.1] = 3;
    laskee[2.2] = 4;
    laskee[2.3] = 3;
    laskee[2.4] = 3;
    laskee[2.5] = 3;
    laskee[2.6] = 3;
    laskee[2.7] = 3;
    laskee[2.8] = 3;
    laskee[2.9] = 2;
    laskee[3] = 3;
    laskee[3.1] = 2;
    laskee[3.2] = 2;
    laskee[3.3] = 4;
    laskee[3.4] = 4;
    laskee[3.5] = 3;
    laskee[3.6] = 2;
    laskee[3.7] = 2;
    laskee[3.8] = 3;
    laskee[3.9] = 4;
    laskee[4] = 4;
    laskee[4.1] = 1;
    laskee[4.2] = 2;
    laskee[4.3] = 2;
    laskee[4.4] = 3;
    laskee[4.5] = 4;
    laskee[4.6] = 4;
    laskee[4.7] = 3;
    laskee[4.8] = 2;
    laskee[4.9] = 2;
    laskee[5] = 1;
    laskee[5.1] = 4;
    laskee[5.2] = 1;
    laskee[5.3] = 2;
    laskee[5.4] = 2;
    laskee[5.5] = 2;
    laskee[5.6] = 2;
    laskee[5.7] = 2;
    laskee[5.8] = 1;
    laskee[5.9] = 3;
    laskee[6] = 2;
    laskee[6.1] = 1;
    laskee[6.2] = 4;
    laskee[6.3] = 3;
    laskee[6.4] = 1;
    laskee[6.5] = 1;
    laskee[6.6] = 4;
    laskee[6.7] = 1;
    laskee[6.8] = 3;
    laskee[6.9] = 2;
    laskee[7] = 1;
    laskee[7.1] = 2;
    laskee[7.2] = 3;
    laskee[7.3] = 2;
    laskee[7.4] = 3;
    laskee[7.5] = 1;
    laskee[7.6] = 2;
    laskee[7.7] = 3;
    laskee[7.8] = 2;
    laskee[7.9] = 2;
    laskee[8] = 1;
    laskee[8.1] = 1;
    laskee[8.2] = 3;
    laskee[8.3] = 3;
    laskee[8.4] = 2;
    laskee[8.5] = 2;
    laskee[8.6] = 3;
    laskee[8.7] = 2;
    laskee[8.8] = 2;
    laskee[8.9] = 2;
    laskee[9] = 2;
    laskee[9.1] = 3;
    laskee[9.2] = 2;
    laskee[9.3] = 1;
    laskee[9.4] = 2;
    laskee[9.5] = 2;
    laskee[9.6] = 1;
    laskee[9.7] = 1;
    laskee[9.8] = 2;
    laskee[9.9] = 4;
    laskee[10] = 2;
    laskee[10.1] = 2;
    laskee[10.2] = 1;
    laskee[10.3] = 2;
    laskee[10.4] = 2;
    laskee[10.5] = 2;
    laskee[10.6] = 2;
    laskee[10.7] = 1;
    laskee[10.8] = 3;
    laskee[10.9] = 2;
    laskee[11] = 2;
    laskee[11.1] = 1;
    laskee[11.2] = 1;
    laskee[11.3] = 2;
    laskee[11.4] = 1;
    laskee[11.5] = 2;
    laskee[11.6] = 2;
    laskee[11.7] = 2;
    laskee[11.8] = 2;
    laskee[11.9] = 2;
    laskee[12] = 3;
    laskee[12.1] = 1;
    laskee[12.2] = 3;
    laskee[12.3] = 3;
    laskee[12.4] = 2;
    laskee[12.5] = 3;
    laskee[12.6] = 3;
    laskee[12.7] = 2;
    laskee[12.8] = 2;
    laskee[12.9] = 1;
    laskee[13] = 2;
    laskee[13.1] = 2;
    laskee[13.2] = 1;
    laskee[13.3] = 2;
    laskee[13.4] = 2;
    laskee[13.5] = 2;
    laskee[13.6] = 2;
    laskee[13.7] = 3;
    laskee[13.8] = 2;
    laskee[13.9] = 2;
    laskee[14] = 1;
    laskee[14.1] = 2;
    laskee[14.2] = 3;
    laskee[14.3] = 2;
    laskee[14.4] = 2;
    laskee[14.5] = 2;
    laskee[14.6] = 2;
    laskee[14.7] = 2;
    laskee[14.8] = 2;
    laskee[14.9] = 2;
    laskee[15] = 2;
    laskee[15.1] = 1;
    laskee[15.2] = 2;
    laskee[15.3] = 2;
    laskee[15.4] = 2;
    laskee[15.5] = 2;
    laskee[15.6] = 2;
    laskee[15.7] = 3;
    laskee[15.8] = 2;
    laskee[15.9] = 2;
    laskee[16] = 2;
    laskee[16.1] = 2;
    laskee[16.2] = 2;
    laskee[16.3] = 2;
    laskee[16.4] = 2;
    laskee[16.5] = 2;
    laskee[16.6] = 1;
    laskee[16.7] = 1;
    laskee[16.8] = 2;
    laskee[16.9] = 1;
    laskee[17] = 1;
    laskee[17.1] = 1;
    laskee[17.2] = 1;
    laskee[17.3] = 2;
    laskee[17.4] = 3;
    laskee[17.5] = 1;
    laskee[17.6] = 1;
    laskee[17.7] = 2;
    laskee[17.8] = 2;
    laskee[17.9] = 1;
    laskee[18] = 1;
    laskee[18.1] = 1;
    laskee[18.2] = 1;
    laskee[18.3] = 1;
    laskee[18.4] = 1;
    laskee[18.5] = 1;
    laskee[18.6] = 2;
    laskee[18.7] = 1;
    laskee[18.8] = 2;
    laskee[18.9] = 2;
    laskee[19] = 1;
    laskee[19.1] = 1;
    laskee[19.2] = 1;
    laskee[19.3] = 1;
    laskee[19.4] = 0;
    laskee[19.5] = 2;
    laskee[19.6] = 1;
    laskee[19.7] = 2;
    laskee[19.8] = 1;
    laskee[19.9] = 1;
    laskee[20] = 1;
    laskee[20.1] = 1;
    laskee[20.2] = 2;
    laskee[20.3] = 1;
    laskee[20.4] = 1;
    laskee[20.5] = 2;
    laskee[20.6] = 1;
    laskee[20.7] = 2;
    laskee[20.8] = 1;
    laskee[20.9] = 1;
    laskee[21] = 2;
    laskee[21.1] = 1;
    laskee[21.2] = 1;
    laskee[21.3] = 0;
    laskee[21.4] = 1;
    laskee[21.5] = 1;
    laskee[21.6] = 1;
    laskee[21.7] = 2;
    laskee[21.8] = 1;
    laskee[21.9] = 1;
    laskee[22] = 2;
    laskee[22.1] = 1;
    laskee[22.2] = 1;
    laskee[22.3] = 1;
    laskee[22.4] = 1;
    laskee[22.5] = 2;
    laskee[22.6] = 1;
    laskee[22.7] = 1;
    laskee[22.8] = 0;
    laskee[22.9] = 2;
    laskee[23] = 1;
    laskee[23.1] = 2;
    laskee[23.2] = 1;
    laskee[23.3] = 1;
    laskee[23.4] = 1;
    laskee[23.5] = 2;
    laskee[23.6] = 1;
    laskee[23.7] = 1;
    laskee[23.8] = 1;
    laskee[23.9] = 1;
    laskee[24] = 2;
    laskee[24.1] = 0;
    laskee[24.2] = 1;
    laskee[24.3] = 1;
    laskee[24.4] = 1;
    laskee[24.5] = 1;
    laskee[24.6] = 1;
    laskee[24.7] = 1;
    laskee[24.8] = 1;
    laskee[24.9] = 1;
    laskee[25] = 1;
    laskee[25.1] = 1;
    laskee[25.2] = 2;
    laskee[25.3] = 1;
    laskee[25.4] = 2;
    laskee[25.5] = 1;
    laskee[25.6] = 2;
    laskee[25.7] = 1;
    laskee[25.8] = 1;
    laskee[25.9] = 1;
    laskee[26] = 2;
    laskee[26.1] = 1;
    laskee[26.2] = 1;
    laskee[26.3] = 3;
    laskee[26.4] = 2;
    laskee[26.5] = 0;
    laskee[26.6] = 2;
    laskee[26.7] = 2;
    laskee[26.8] = 2;
    laskee[26.9] = 2;
    laskee[27] = 1;
    laskee[27.1] = 2;
    laskee[27.3] = 2;
    laskee[27.4] = 0;
    laskee[27.5] = 0;
    laskee[27.6] = 0;
    laskee[27.7] = 2;
    laskee[27.8] = 2;
    laskee[27.9] = 1;
    laskee[28] = 0;
    laskee[28.1] = 2;
    laskee[28.2] = 2;
    laskee[28.3] = 2;
    laskee[28.4] = 2;
    laskee[28.5] = 1;
    laskee[28.6] = 3;
    laskee[28.7] = 2;
    laskee[28.8] = 1;
    laskee[28.9] = 1;
    laskee[29] = 1;
    laskee[29.3] = 3;
    laskee[29.5] = 2;
    laskee[29.6] = 1;
    laskee[29.7] = 0;
    laskee[29.8] = 1;
    laskee[29.9] = 1;
    laskee[30] = 1;
    laskee[30.1] = 0;
    laskee[30.5] = 3;
    laskee[30.6] = 2;
    laskee[30.8] = 2;
    laskee[30.9] = 0;
    laskee[31.2] = 0;
    laskee[31.3] = 2;
    laskee[31.4] = 1;
    laskee[31.5] = 2;
    laskee[32.6] = 2;


    int n;
    cin >> n;

    double kerroin = 1.5;

    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 <= laskee[x] + 1 && laskee[x] < 6){
                cout << x << " ";
            }
            else if(i < 12 - q){
                int askel = i - laskee[x];
                x -= m[round(x * 10) / 10] * (vaihtelu * (2 - (abs(keskikohta - askel) / keskikohta))) * kerroin;
                cout << round(x * 10) / 10 << " ";
            }
            else cout << "? ";
 
        }
 
        cout << "\n";
 
    }
    
}

Test details

Test 1

Verdict: ACCEPTED

input
1000
-0.4 -0.1 -0.2 -0.3 -0.4 -0.5 ...

correct output
0.4 0.4 0.5 0.8 0.9 1.1 1.3 1....

user output
0.2 0.2 0.2 0.2 0.1 0.1 -0 -0....
Truncated

Test 2

Verdict: ACCEPTED

input
1000
2.9 2.9 2.9 2.1 2.6 2 2 2.2 2....

correct output
2.3 1.6 1.5 1.1 1 0.7 0.6 0.8 ...

user output
2.6 2.6 2.6 2.6 2.6 2.5 2.5 2....
Truncated

Test 3

Verdict: ACCEPTED

input
1000
6.6 6 6.4 6 4.6 4.6 4.2 4.3 4....

correct output
10 10.9 10.3 10.1 9.1 7.3 5.7 ...

user output
10.1 10.1 10.1 10.1 9.4 8.8 ? ...
Truncated

Test 4

Verdict: ACCEPTED

input
1000
19.4 20.2 19.1 18.9 18.3 17.3 ...

correct output
18 18.2 17 17.5 17.2 16.2 12 8...

user output
17.2 17.2 17.2 15.7 ? ? ? ? ? ...
Truncated

Test 5

Verdict: ACCEPTED

input
1000
-5.7 -5.8 -5.8 -5.9 -7.1 -6.9 ...

correct output
-4.2 -4.1 -4 -3.8 -3.5 -3.2 -3...

user output
-4.5 -4.5 -4.5 -4.5 -4.6 -4.4 ...
Truncated

Test 6

Verdict: ACCEPTED

input
1000
14.8 14.8 15.4 12.9 11.8 9.7 9...

correct output
11.8 11 11.6 10.8 10.4 10.4 10...

user output
12.6 12.6 12.6 12.6 12.6 ? ? ?...
Truncated

Test 7

Verdict: ACCEPTED

input
1000
0.7 1 2 1.4 0.6 -0.4 -0.9 -0.7...

correct output
-1.3 -0.5 -0.6 -1 -3.2 -7.2 -6...

user output
-1.8 -1.8 -1.8 -1.8 -1.8 -1.8 ...
Truncated

Test 8

Verdict: ACCEPTED

input
1000
15.1 15.3 14.9 14.4 14.4 13.7 ...

correct output
15.6 15.9 16 15.2 14.6 14.4 13...

user output
15 15 15 15 14.5 14 13.6 13.2 ...
Truncated