QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#430000#7281. How to Avoid Disqualification in 75 Easy StepsAdamGS67.999999 15ms3888kbC++2313.2kb2024-06-03 10:16:542024-06-03 10:16:54

Judging History

你现在查看的是最新测评结果

  • [2024-06-03 10:16:54]
  • 评测
  • 测评结果:67.999999
  • 用时:15ms
  • 内存:3888kb
  • [2024-06-03 10:16:54]
  • 提交

answer

#include "avoid.h"
using namespace std;
typedef long long ll;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
ll dlu=34,W[1000]={14101812613,1217594312,9479655468,3242787929,16719480962,4853925042,7010324768,14332526712,9867143364,5229904000,159490574,7766018624,8598400084,2970145025,7151313940,2105542000,4511244329,1627813136,12491434304,2794465826,1482309798,10884224158,5318940112,14480853504,16799240257,8055178525,13443973384,16318468482,6053708291,11553354864,10965551361,13028563410,5637612936,8861868057,5586946621,11815641197,13588500754,3478028800,5655038092,6813142816,5202254352,5105551945,1162101324,697715728,6791536641,15501131796,5245250848,4632740684,11141581394,823789068,9402456328,7853051923,6849966665,9932113211,7535370947,8659408523,12902863964,13226313248,10282991672,3377988864,335753282,9276817608,16731409282,8057336938,15317649155,13229099385,11429654928,15773089928,8389089536,135299566,13282837522,14034426072,7558202728,5511889993,10481844416,15673221184,6910182465,8803877394,3372746533,5234660408,4799989778,9756116170,2887942488,2454197316,14856817188,1746033216,12222217409,12520026889,10821374231,16254140490,3912630533,16512500064,4648140862,6594512101,4761105408,2858165280,16375779481,11687435152,1310722192,8371839938,16651944243,1489117538,7105954312,4935341568,16484731456,7160759308,2771910918,5738434730,15604564097,9425978432,430145792,13172214187,8608813289,12891556354,11560763525,8433239064,5503254913,1241825736,15119451520,2561168904,15437787144,470221581,16113797136,5105836800,15112374564,11832263234,11837004448,6954296384,321914448,11014447140,11854419360,6794925093,15219063810,9950235777,11094328324,11686002710,1147937416,2731676417,8674476960,8969558305,8657168642,5112283648,3917714441,11811602849,6449025920,12281223681,4044054531,11014783833,8692302146,10873227570,9867124823,11699488848,16242508916,11489673760,1722288205,4889034820,7831307408,9703532260,12954182625,7153467530,2282592528,14588217090,6196119624,16788953348,9534203908,2781225010,9781383682,9935391232,3794536496,11610908035,44368340,98566268,12977244321,13691818598,9262335097,9940914246,7836434434,9194366020,4681450562,440681046,12084125900,1511017132,12969969344,14500374884,5650023493,8716830748,15704132820,9026157252,12213900307,7957186568,2349535881,15569522616,14040006920,6447403009,10172302464,9332328995,14765032790,16446129826,9198202949,14799744003,7158965248,4674142210,1409620772,11815374434,15057711234,7979020288,12394582112,15181836384,6582978602,7052235276,8950776432,581013697,11815662352,6058721573,16743845132,6874996806,1820387364,15718879242,16056442944,12096463644,707825698,8187826992,3613397024,411832646,6594537250,16266625062,5469384018,15584007684,4030867469,4433117443,12005278768,16919990373,1990639872,2155975052,11587964930,4408378848,11074052424,14034154786,5121577995,12885694108,13261480196,15134368556,6266556454,2090874888,1425100944,13733724192,4566753424,3161493521,4861398272,4466959057,1287528512,6360143042,13023618626,14369696534,14820648961,8942363956,14548403210,9933988420,9007693888,15121064529,1612817152,2165368008,1869377,12490704594,12943852672,1723993636,7838441729,15361736752,9312547396,1284510384,1455742992,9312419855,6619300097,538476757,6044877856,15440154757,11421127730,8216659456,15303131908,3624280282,9982641685,1711294940,3845792192,4949418113,12904088713,12165714218,12939538436,11023700753,4078993422,5991604225,12247373209,13174407227,12627298464,611451910,9330180104,3925888361,1344556424,11391773452,9982451917,14163138630,8068059138,10895245592,2471257090,10277095243,15740308116,16748020262,11559701696,8691713546,15033057605,6921955340,8875685146,9165877258,13153347735,11039484089,3825322177,1125125323,4492230953,1652588900,16309690759,7117892640,6747071630,6166511620,15053275152,2762145960,13505891368,675597376,8863795233,6746571690,5647648658,8757819413,9557381664,6452291609,5156716672,6745149442,4471693338,9698444058,2323935760,4715217290,405086213,7018381931,6761747066,5050126468,6784436865,7252510480,8060142672,7109355584,2723353112,1214423233,7591774148,13430445761,13640925793,13005755393,2452242571,16181732360,7820560228,4170846344,16697983750,12315107616,2856495104,411449890,10885306500,16689856549,15653225128,4857943040,8766242851,12415570950,8175305220,9397475404,16679727144,13053538384,2964867096,7558070306,8330034562,13993326977,15252686982,12977578124,8677503508,9032075552,7047301123,1826112522,12985745976,10838453760,4580726934,15211234080,14351400978,679547682,15395807746,9139724562,4874111752,16815392000,3227568451,14405396545,8680910860,7081693588,10935141644,17125674120,2980055949,15713175048,7215617026,11534405648,12940478948,4865557071,14361380492,4136648890,8758854232,13816562113,11070355584,12118983106,10096214029,10217522065,10423894171,2420679878,12376649792,1698021408,10603250203,6130393088,11614078632,9940580412,4748221506,8642365555,16370375684,4295166040,13639952776,10738648106,7946244288,10888418887,7399196689,4838150224,11314823298,11964533322,6796546052,10001992709,7591898628,10740113451,623773760,10251420362,11249598465,9424994817,10072475648,1557236228,5941367349,7318594592,10511266311,6041942368,2197819519,6476809734,16673177744,5508695228,8059463706,13698713867,70434914,14028059168,5239292178,6055658028,11861506288,5557465272,13026985477,10909653257,572656334,3136460800,9103900691,5241520192,2223311950,13565299715,11612594689,13564388623,10250936585,16704381456,6687944832,460357698,391414016,5176334352,9053741080,10448069216,806142114,8357232940,3534392320,538456521,4967910785,890296330,5033198528,11930109952,6786430469,11359306851,1110671381,5683480596,5378279047,9777025536,3808995368,5389831824,4676799000,14278984436,16191335489,696420684,9144870914,2801865897,33578008,4640440449,4454554113,16714948768,2969306880,10545250948,7558222421,268441012,2571165745,14799608038,4580194883,4069558704,11711414296,14030479535,851533824,10492483072,10760298498,14428496897,5951762728,8900980998,605099796,5190783232,1528925220,2854559040,12381857905,1478072323,5236859074,6725701795,2396128536,9777973985,3323528005,15705721680,1089479756,7048006565,12591875072,7860273890,6562822144,3109825024,14497228933,2485125595,33709440,12518218244,14345732177,8449434784,2223147842,16116449812,969089032,12285120727,5104741897,5796742158,13761843228,7873595397,7450663936,5777408320,1023953968,10016129406,9144127822,11279018674,7936304168,4609556842,7174369330,11673845888,4865790322,7050892129,8893526561,14606009426,9798447111,16732260353,13971242257,11861630625,6979477774,9127723561,4733014788,5420094760,7256673736,6954291284,15741234330,6720062729,1619565377,8191693088,4306899078,8334262676,10006112352,54790276,15516516608,5164111874,6614171648,10892415040,15712152200,16367227776,10209177920,1435521344,15070694922,6583616545,5404819737,4966076659,13891638594,616704006,3779639558,2684379640,7840211464,1082139495,11545780482,15328674948,9253294360,2150105512,16136028200,5682235733,5984012292,10335027933,1688277293,16259387926,2395410560,4966748594,11288053920,4144088080,4573692961,10789884752,3339026762,5649730632,15452542016,6090925441,9832001412,12353801747,1992392849,974419584,843292824,4565568275,3087404326,4566815960,10710157324,4037021062,14991499266,13255016512,13635822000,2198340113,3944370212,8245223552,2249593096,6175146033,10809010624,3491498102,10200615221,2746254372,8129162402,10807970834,5173170752,2294481923,7282019072,12516493521,3761541224,11950674307,7652122896,4102295733,13021222458,9159573553,12519507977,14404550789,15099699862,13030297604,15909066944,9169411104,16397840401,1498438816,5936062730,11492429404,11287503109,8660590632,434913316,11173647906,589997064,2020704416,8137678864,10229387269,5513708197,15104755751,2421459368,5995758609,5922951810,4507649024,2972798976,9215034377,9028304966,8212776194,739331076,11290740736,11939233796,11569955840,15189307412,5185864234,9281038849,11241283714,11414097933,5994930208,722579489,7168503817,1208002635,7417954896,4498008138,16335765777,14537861637,5877075970,6211764487,13025512720,8800977280,3226089490,16747069468,10067183796,7215268368,16236544272,4669325385,6987865132,6042533970,10748822272,9211799058,8926020844,13477552193,79843665,76051588,16652216481,2720335524,14030307992,1359021478,34903697,13230498352,15343065096,12939592580,7571277472,7684037126,21272666,13997191496,5376508004,10788704288,5524889856,14034403742,13321643361,13032327232,11386030346,2500628504,16143911138,8255451618,9666339988,7869843488,15330533508,6516147208,13711876180,10829720195,7518475281,15704050182,2038440341,4430439462,13424067921,8225365504,18946186,12970177152,136407440,6918554116,6141264417,9416573536,3851076160,13528892176,2440568833,9413868560,15200937088,11292448810,12440310912,2776787200,16454299784,11811508746,12517675049,7533301020,9764384933,15134392966,10244915854,3427311724,12117347501,6268158144,1026296962,14177673764,15913601576,15208153096,13490991165,8887779416,13758513953,5991302704,4102570381,8355660417,8891960611,11843904000,2586075313,13473562691,15371147361,8660849729,11279220764,808595712,13120393256,1149338424,237551756,15167724057,15142232064,2149278592,10754218539,13434384438,15183780165,13447660082,3934310594,3328448642,13968887816,14103511656,16114671705,406848441,8907131017,6616552468,2954074272,13059499784,12944288328,14025792778,8277196904,2416347368,1356595476,15764334599,15183656099,202494336,3357042248,1074333293,15359844611,13087291137,617253016,11144529351,8961399060,1411727412,16473140752,184579396,10909455186,2758017091,3088059290,15074781192,11039463748,2550632578,13306728576,15578432147,11215061138,13606699015,13027903336,12385334288,12251574080,3356780566,9114321217,3006006293,11828209198,9781168786,5242899466,7256615954,13977544003,2319583635,2317388337,9164556126,9161420340,574637873,15335464032,870320384,9596665865,3321889719,3159499280,10039612674,16140883981,13025501604,4364984608,2307933444,10544795264,3240231621,5935009392,13566759940,425735176,3315729953,14921372928,16315994202,11957986857,12197724171,2651013328,2721432896,7187600016,13647236353,12348391921,14045252224,2877341970,3500184328,9934692418,7384599392,13366263939,6715085486,8942266680,4568658211,13960312832,4440761984,10766254616,12358551241,13089394996,15183872036,7753990417,876674049,7668286132,1110010889,10502747936,1364886529,2453242952,13734552610,15720556056,10813218998,9870041348,16379438160,11255939296,12640846152,3382773790,2618335263,5837447424,17048045652,8191515344,2198948610,10754753638,88952848,13876371456,3518792193,13095805136,2492602435,16526614700,15843993171,13118242824,14412065152,11345708054,10371232,5373220912,16123531848,4883818688,14065747136,9202542640,16243532628,2236732416,4843653201,16281768132,9450300048,13977980961,8288535557,6812214449,9765732420,13032555008,5710717448,16146485248,7718050831,3240968289,6187844164,5548295264,8496087554,14025896842,13028745216,6056661220,15756052576,695732258,5331240962,9396319268,8774682914,6314595936,16136291138,7902376196,10794072081,4367189043,6999251239,11115963509,9498378753,14646543600,14026016871,85182608,13523651652,13086760776,12014814468,14059523649,8959312880,5628789384,13002736784,4329715202,3718325504,5928731299,270934539,3641013056,10972574440,8473616720,11830248752,16509411977,12264301056,16374584198,60686340,12631740464,8062567581,9529655523,2642434185,15091124373,6999359564,8930403460,5306130464,13089669572,638289665,5034785312,10488539264,9198634115};
pair<int,int>solve0() {
  rep(i, 10) {
    vector<int>A;
    for(int j=1; j<=1000; ++j) if(j&(1<<i)) A.pb(j);
    send(A);
  }
  vector<int>T=wait();
  int ans=0;
  rep(i, 10) ans+=(1<<i)*T[i];
  return {ans, ans};
}
pair<int,int>solve1(int x) {
  int po=x, ko=1001;
  while(po<ko) {
    int sr=(po+ko)/2;
    vector<int>P;
    for(int i=po; i<=sr; ++i) P.pb(i);
    send(P);
    vector<int>T=wait();
    if(T[0]) ko=sr; else po=sr+1;
  }
  return {po, po};
}
pair<int,int>solve2() {
  int a=solve1(1).st;
  int b=solve1(a+1).st;
  if(b==1001) b=a;
  return {a, b};
}
pair<int,int>solve3() {
  rep(i, 10) {
    vector<int>A, B;
    for(int j=1; j<=1000; ++j) if(j&(1<<i)) B.pb(j); else A.pb(j);
    send(A);
    send(B);
  }
  int x=0;
  vector<int>T=wait(), P;
  rep(i, 10) if(T[2*i] && T[2*i+1]) P.pb(i); else if(T[2*i+1]) x+=1<<i;
  if(P.size()==0) return {x, x};
  int a=x+(1<<P[0]), b=x;
  if(P.size()==1) return {a, b};
  rep(i, P.size()-1) {
    vector<int>A;
    for(int j=1; j<=1000; ++j) {
      if((j&(1<<P[i])) && (j&(1<<P[i+1]))) A.pb(j);
      if(!(j&(1<<P[i])) && !(j&(1<<P[i+1]))) A.pb(j);
    }
    send(A);
  }
  T=wait();
  rep(i, T.size()) {
    if(T[i]) {
      if(a&(1<<P[i])) a+=1<<P[i+1]; else b+=1<<P[i+1];
    } else {
      if(a&(1<<P[i])) b+=1<<P[i+1]; else a+=1<<P[i+1];
    }
  }
  return {a, b};
}
pair<int,int>solve4() {
  rep(i, dlu) {
    vector<int>P;
    rep(j, 1000) if(W[j]&(1ll<<(ll)i)) P.pb(j+1);
    send(P);
  }
  vector<int>T=wait();
  rep(i, 1000) rep(j, i+1) {
    bool ok=true;
    rep(l, dlu) {
      int x=0;
      if((W[i]&(1ll<<(ll)l)) || (W[j]&(1ll<<(ll)l))) x=1;
      if(x!=T[l]) ok=false;
    }
    if(ok) return {j+1, i+1};
  }
  return {-1, -1};
}
pair<int,int>scout(int r, int h) {
  if(r==10) return solve0();
  if(r==20) return solve2();
  if(r==30) return solve3();
  return solve4();
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3580kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #2:

score: 10
Accepted
time: 0ms
memory: 3876kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #3:

score: 10
Accepted
time: 1ms
memory: 3580kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #4:

score: 10
Accepted
time: 1ms
memory: 3584kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #5:

score: 10
Accepted
time: 1ms
memory: 3648kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #6:

score: 10
Accepted
time: 1ms
memory: 3608kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #7:

score: 10
Accepted
time: 1ms
memory: 3612kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #8:

score: 10
Accepted
time: 0ms
memory: 3840kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #9:

score: 10
Accepted
time: 1ms
memory: 3876kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Test #10:

score: 10
Accepted
time: 1ms
memory: 3612kb

input:



output:


result:

ok Correct: 10 robot(s) used, 1 hour(s) passed

Subtask #2:

score: 5
Accepted

Test #11:

score: 5
Accepted
time: 1ms
memory: 3616kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #12:

score: 5
Accepted
time: 1ms
memory: 3612kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #13:

score: 5
Accepted
time: 0ms
memory: 3580kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #14:

score: 5
Accepted
time: 1ms
memory: 3584kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #15:

score: 5
Accepted
time: 1ms
memory: 3876kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #16:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #17:

score: 5
Accepted
time: 1ms
memory: 3872kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #18:

score: 5
Accepted
time: 1ms
memory: 3676kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #19:

score: 5
Accepted
time: 1ms
memory: 3584kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #20:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #21:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #22:

score: 5
Accepted
time: 1ms
memory: 3608kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #23:

score: 5
Accepted
time: 0ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #24:

score: 5
Accepted
time: 1ms
memory: 3616kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #25:

score: 5
Accepted
time: 1ms
memory: 3584kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #26:

score: 5
Accepted
time: 0ms
memory: 3544kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #27:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #28:

score: 5
Accepted
time: 1ms
memory: 3836kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #29:

score: 5
Accepted
time: 1ms
memory: 3652kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #30:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #31:

score: 5
Accepted
time: 1ms
memory: 3612kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #32:

score: 5
Accepted
time: 1ms
memory: 3816kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #33:

score: 5
Accepted
time: 1ms
memory: 3872kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #34:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #35:

score: 5
Accepted
time: 1ms
memory: 3880kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #36:

score: 5
Accepted
time: 1ms
memory: 3636kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #37:

score: 5
Accepted
time: 0ms
memory: 3872kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #38:

score: 5
Accepted
time: 1ms
memory: 3636kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #39:

score: 5
Accepted
time: 1ms
memory: 3636kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #40:

score: 5
Accepted
time: 1ms
memory: 3636kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #41:

score: 5
Accepted
time: 1ms
memory: 3612kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #42:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #43:

score: 5
Accepted
time: 1ms
memory: 3644kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #44:

score: 5
Accepted
time: 1ms
memory: 3592kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #45:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #46:

score: 5
Accepted
time: 1ms
memory: 3524kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #47:

score: 5
Accepted
time: 1ms
memory: 3588kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #48:

score: 5
Accepted
time: 1ms
memory: 3572kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #49:

score: 5
Accepted
time: 1ms
memory: 3644kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #50:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 19 robot(s) used, 19 hour(s) passed

Test #51:

score: 5
Accepted
time: 1ms
memory: 3572kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #52:

score: 5
Accepted
time: 0ms
memory: 3872kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #53:

score: 5
Accepted
time: 1ms
memory: 3636kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #54:

score: 5
Accepted
time: 1ms
memory: 3872kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #55:

score: 5
Accepted
time: 1ms
memory: 3876kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #56:

score: 5
Accepted
time: 1ms
memory: 3616kb

input:

\x14

output:


result:

ok Correct: 19 robot(s) used, 19 hour(s) passed

Test #57:

score: 5
Accepted
time: 1ms
memory: 3632kb

input:

\x14

output:


result:

ok Correct: 10 robot(s) used, 10 hour(s) passed

Test #58:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 19 robot(s) used, 19 hour(s) passed

Test #59:

score: 5
Accepted
time: 1ms
memory: 3808kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #60:

score: 5
Accepted
time: 1ms
memory: 3688kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #61:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

\x14

output:


result:

ok Correct: 12 robot(s) used, 12 hour(s) passed

Test #62:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #63:

score: 5
Accepted
time: 1ms
memory: 3648kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #64:

score: 5
Accepted
time: 0ms
memory: 3572kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Test #65:

score: 5
Accepted
time: 0ms
memory: 3528kb

input:

\x14

output:


result:

ok Correct: 20 robot(s) used, 20 hour(s) passed

Subtask #3:

score: 10
Accepted

Test #66:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #67:

score: 10
Accepted
time: 1ms
memory: 3640kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #68:

score: 10
Accepted
time: 1ms
memory: 3580kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #69:

score: 10
Accepted
time: 0ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 26 robot(s) used, 2 hour(s) passed

Test #70:

score: 10
Accepted
time: 1ms
memory: 3880kb

input:

\x1e

output:


result:

ok Correct: 26 robot(s) used, 2 hour(s) passed

Test #71:

score: 10
Accepted
time: 1ms
memory: 3528kb

input:

\x1e

output:


result:

ok Correct: 26 robot(s) used, 2 hour(s) passed

Test #72:

score: 10
Accepted
time: 1ms
memory: 3680kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #73:

score: 10
Accepted
time: 1ms
memory: 3648kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #74:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #75:

score: 10
Accepted
time: 1ms
memory: 3636kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #76:

score: 10
Accepted
time: 1ms
memory: 3588kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #77:

score: 10
Accepted
time: 1ms
memory: 3616kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #78:

score: 10
Accepted
time: 0ms
memory: 3576kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #79:

score: 10
Accepted
time: 1ms
memory: 3884kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #80:

score: 10
Accepted
time: 1ms
memory: 3876kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #81:

score: 10
Accepted
time: 1ms
memory: 3640kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #82:

score: 10
Accepted
time: 0ms
memory: 3652kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #83:

score: 10
Accepted
time: 0ms
memory: 3880kb

input:

\x1e

output:


result:

ok Correct: 25 robot(s) used, 2 hour(s) passed

Test #84:

score: 10
Accepted
time: 1ms
memory: 3648kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #85:

score: 10
Accepted
time: 0ms
memory: 3648kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #86:

score: 10
Accepted
time: 1ms
memory: 3532kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #87:

score: 10
Accepted
time: 1ms
memory: 3588kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #88:

score: 10
Accepted
time: 1ms
memory: 3580kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #89:

score: 10
Accepted
time: 1ms
memory: 3572kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #90:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #91:

score: 10
Accepted
time: 1ms
memory: 3640kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #92:

score: 10
Accepted
time: 1ms
memory: 3640kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #93:

score: 10
Accepted
time: 0ms
memory: 3592kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #94:

score: 10
Accepted
time: 1ms
memory: 3584kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #95:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #96:

score: 10
Accepted
time: 0ms
memory: 3528kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #97:

score: 10
Accepted
time: 1ms
memory: 3588kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #98:

score: 10
Accepted
time: 1ms
memory: 3620kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #99:

score: 10
Accepted
time: 1ms
memory: 3616kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #100:

score: 10
Accepted
time: 1ms
memory: 3588kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #101:

score: 10
Accepted
time: 0ms
memory: 3880kb

input:

\x1e

output:


result:

ok Correct: 20 robot(s) used, 1 hour(s) passed

Test #102:

score: 10
Accepted
time: 1ms
memory: 3584kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #103:

score: 10
Accepted
time: 0ms
memory: 3640kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #104:

score: 10
Accepted
time: 0ms
memory: 3816kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #105:

score: 10
Accepted
time: 0ms
memory: 3592kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #106:

score: 10
Accepted
time: 1ms
memory: 3612kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #107:

score: 10
Accepted
time: 1ms
memory: 3588kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #108:

score: 10
Accepted
time: 1ms
memory: 3652kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #109:

score: 10
Accepted
time: 1ms
memory: 3572kb

input:

\x1e

output:


result:

ok Correct: 21 robot(s) used, 2 hour(s) passed

Test #110:

score: 10
Accepted
time: 1ms
memory: 3844kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #111:

score: 10
Accepted
time: 1ms
memory: 3580kb

input:

\x1e

output:


result:

ok Correct: 23 robot(s) used, 2 hour(s) passed

Test #112:

score: 10
Accepted
time: 1ms
memory: 3680kb

input:

\x1e

output:


result:

ok Correct: 24 robot(s) used, 2 hour(s) passed

Test #113:

score: 10
Accepted
time: 0ms
memory: 3880kb

input:

\x1e

output:


result:

ok Correct: 26 robot(s) used, 2 hour(s) passed

Test #114:

score: 10
Accepted
time: 0ms
memory: 3576kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #115:

score: 10
Accepted
time: 1ms
memory: 3636kb

input:

\x1e

output:


result:

ok Correct: 22 robot(s) used, 2 hour(s) passed

Test #116:

score: 10
Accepted
time: 0ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #117:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #118:

score: 10
Accepted
time: 1ms
memory: 3644kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Test #119:

score: 10
Accepted
time: 1ms
memory: 3576kb

input:

\x1e

output:


result:

ok Correct: 29 robot(s) used, 2 hour(s) passed

Subtask #4:

score: 43
Acceptable Answer

Test #120:

score: 43
Acceptable Answer
time: 13ms
memory: 3648kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #121:

score: 43
Acceptable Answer
time: 2ms
memory: 3888kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #122:

score: 43
Acceptable Answer
time: 2ms
memory: 3648kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #123:

score: 43
Acceptable Answer
time: 1ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #124:

score: 43
Acceptable Answer
time: 0ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #125:

score: 43
Acceptable Answer
time: 5ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #126:

score: 43
Acceptable Answer
time: 15ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #127:

score: 43
Acceptable Answer
time: 0ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #128:

score: 43
Acceptable Answer
time: 10ms
memory: 3592kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #129:

score: 43
Acceptable Answer
time: 4ms
memory: 3588kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #130:

score: 43
Acceptable Answer
time: 6ms
memory: 3656kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #131:

score: 43
Acceptable Answer
time: 6ms
memory: 3888kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #132:

score: 43
Acceptable Answer
time: 5ms
memory: 3664kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #133:

score: 43
Acceptable Answer
time: 5ms
memory: 3664kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed

Test #134:

score: 43
Acceptable Answer
time: 2ms
memory: 3652kb

input:

K

output:


result:

points 0.5733333230 points  0.5733333230 Correct: 34 robot(s) used, 1 hour(s) passed