QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#731549 | #5206. Hot and Cold | ydzr00000 | RE | 1ms | 3812kb | C++17 | 1.5kb | 2024-11-10 08:31:07 | 2024-11-10 08:31:07 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
inline string Ask(int x,int y)
{
cout<<x<<" "<<y<<endl;
string str;
getline(cin,str);
return str;
}
inline bool Found(string s)
{
for(auto ch: s)
if(ch=='!')
return true;
return false;
}
int main(){
string NF=Ask(0,0);
if(Found(NF))
return 0;
string same=Ask(0,0);
string closer=Ask(1,1);
if(Found(closer))
return 0;
if(same==closer)
{
string res=Ask(0,1);
if(!Found(res))
{
res=Ask(1,0);
assert(Found(res));
return 0;
}
return 0;
}
int Lx=0,Rx=1e6;
int Ly=0,Ry=1e6;
while(Rx-Lx>=2||Ly-Ry>=2)
{
int Mx=(Lx+Rx)>>1;
int My=(Ly+Ry)>>1;
string fir=Ask(Mx,My);
if(Found(fir))
return 0;
string sec=Ask(Mx+1,My);
if(Found(sec))
return 0;
string thir=Ask(Mx+1,My+1);
if(Found(thir))
return 0;
if(sec==closer)
Lx=Mx+1;
else
Rx=Mx;
if(thir==closer)
Ly=My+1;
else
Ry=My;
}
string g=Ask(Lx,Ly),fl;
if(Found(g))
return 0;
string h=Ask(Lx+1,Ly);
if(Found(h))
return 0;
if(h==closer)
fl=Ask(Lx+1,Ly+1);
else
fl=Ask(Lx,Ly+1);
assert(Found(fl));
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3768kb
input:
Tabilmadi Sama distanco Daha yakin Dalej Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Daha yakin Dalej Daha yakin D...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 125000 125000 125001 125000 125001 125001 62500 62500 62501 62500 62501 62501 31250 31250 31251 31250 31251 31251 15625 15625 15626 15625 15626 15626 7812 7812 7813 7812 7813 7813 3906 3906 3907 3906 3907...
result:
ok 63 points
Test #2:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
rr ee qq qq qq qq qq qq qq ww ww ww qq ww ww qq ww ww ww qq qq qq qq qq qq qq qq ww ww ww qq ww ww qq ww ww ww qq qq qq qq qq qq qq qq ww ww ww qq ww ww qq ww ww qq qq You are lucky today!
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 875000 875000 875001 875000 875001 875001 812500 812500 812501 812500 812501 812501 781250 781250 781251 781250 781251 781251 765625 765625 765626 765625 765626 765626 773438 773438 773439 773438 773439 7...
result:
ok 57 points
Test #3:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
Tabilmadi Sama distanco Daha yakin Dalej Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Dalej Daha yakin Dalej Daha yakin Daha yakin D...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 125000 125000 125001 125000 125001 125001 62500 62500 62501 62500 62501 62501 31250 31250 31251 31250 31251 31251 15625 15625 15626 15625 15626 15626 7812 7812 7813 7812 7813 7813 3906 3906 3907 3906 3907...
result:
ok 62 points
Test #4:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
voyne net net voyne miru mir miru mir miru mir mir miru miru mir mir miru mir miru miru mir mir miru miru mir miru mir miru mir miru mir miru mir mir miru miru mir miru mir mir miru miru mir miru mir mir miru mir miru miru mir mir miru miru mir mir miru miru mir mir miru miru mir miru mir miru mir m...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 250000 750001 250000 750001 250001 625000 125000 625001 125000 625001 125001 562500 187500 562501 187500 562501 187501 593750 218750 593751 218750 593751 218751 578125 234375 578126 234375 578126 234376 570313 242188 570314 242188 570314 2...
result:
ok 59 points
Test #5:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mir miru mi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 750000 250001 750000 250001 750001 125000 625000 125001 625000 125001 625001 187500 562500 187501 562500 187501 562501 218750 593750 218751 593750 218751 593751 234375 578125 234376 578125 234376 578126 242188 570313 242189 570313 242189 5...
result:
ok 62 points
Test #6:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
mmimRRmmmmuiiuuiuimRmiiuiuiiuu mmimRRmmmmuiiuuiuimRmiiuiuiium mmimRRmmmmuiiuuiuimRmiiuiuiiuR mmimRRmmmmuiiuuiuimRmiiuiuiiuR mmimRRmmmmuiiuuiuimRmiiuiuiiui mmimRRmmmmuiiuuiuimRmiiuiuiiui mmimRRmmmmuiiuuiuimRmiiuiuiiuR mmimRRmmmmuiiuuiuimRmiiuiuiiuR mmimRRmmmmuiiuuiuimRmiiuiuiiuR mmimRRmmmmuiiuuiuimRm...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 375000 375000 375001 375000 375001 375001 312500 312500 312501 312500 312501 312501 343750 343750 343751 343750 343751 343751 328125 328125 328126 328125 328126 328126 335938 335938 335939 335938 335939 3...
result:
ok 60 points
Test #7:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
uiuumRmiRuRuRmmimuuummiRuiRumR uiuumRmiRuRuRmmimuuummiRuiRumm uiuumRmiRuRuRmmimuuummiRuiRumi uiuumRmiRuRuRmmimuuummiRuiRumi uiuumRmiRuRuRmmimuuummiRuiRumi uiuumRmiRuRuRmmimuuummiRuiRumi uiuumRmiRuRuRmmimuuummiRuiRumi uiuumRmiRuRuRmmimuuummiRuiRumu uiuumRmiRuRuRmmimuuummiRuiRumu uiuumRmiRuRuRmmimuuum...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 625000 625000 625001 625000 625001 625001 687500 687500 687501 687500 687501 687501 656250 656250 656251 656250 656251 656251 671875 671875 671876 671875 671876 671876 664063 664063 664064 664063 664064 6...
result:
ok 54 points
Test #8:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
RiRiiiimiRiiiuRuuRiRmuRiuRuRR!
output:
0 0
result:
ok 1 points
Test #9:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
imRRmiRiRiRuimuiRiiiumiiRRmRim RRmuRmRumiiiiiuRmRmummuiuRuRiR RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiRuRuuiuRui RuRummmRRimumRimuRRiR...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 875000 875000 875001 875000 875001 875001 937500 937500 937501 937500 937501 937501 968750 968750 968751 968750 968751 968751 984375 984375 984376 984375 984376 984376 992188 992188 992189 992188 992189 9...
result:
ok 60 points
Test #10:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
RiuimmRRRmmiimmiRuRRRmRiuimRum RiuimmRRRmmiimmiRuRRRmRiuimRui RiuimmRRRmmiimmiRuRRRmRiuimRuR RiuimmRRRmmiimmiRuRRRmRiuimRuR RiuimmRRRmmiimmiRuRRRmRiuimRuu RiuimmRRRmmiimmiRuRRRmRiuimRuR RiuimmRRRmmiimmiRuRRRmRiuimRuR RiuimmRRRmmiimmiRuRRRmRiuimRuu RiuimmRRRmmiimmiRuRRRmRiuimRuR RiuimmRRRmmiimmiRuRRR...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 750000 250001 750000 250001 750001 125000 875000 125001 875000 125001 875001 62500 937500 62501 937500 62501 937501 31250 968750 31251 968750 31251 968751 15625 984375 15626 984375 15626 984376 7812 992188 7813 992188 7813 992189 3906 9960...
result:
ok 61 points
Test #11:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
muumRumummuRiiiRuRmmmimumuimmm RuRiRRRiumummimRuimimimuiimiRu RuuRimimuimRRRmuuiRiiumuRRiiui RuuRimimuimRRRmuuiRiiumuRRiiui RuuRimimuimRRRmuuiRiiumuRRiiui RuuimuiiuRmiRRummuiiuuiiiiRiuR RuuRimimuimRRRmuuiRiiumuRRiiui RuuRimimuimRRRmuuiRiiumuRRiiui RuuimuiiuRmiRRummuiiuuiiiiRiuR RuuRimimuimRRRmuuiRii...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 250000 750001 250000 750001 250001 875000 125000 875001 125000 875001 125001 937500 62500 937501 62500 937501 62501 968750 31250 968751 31250 968751 31251 984375 15625 984376 15625 984376 15626 992188 7812 992189 7812 992189 7813 996094 39...
result:
ok 61 points
Test #12:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
iiRmmuRiummRimiuiRRmmmimRummii mimmRuiimuRmuiiiuRRRRiRmRimium RmRumumumimiRmuimRRmuumiRRRiRR RmRumumumimiRmuimRRmuumiRRRiRR mRuRuuRRiuiiiRiummuumRRRiRRmRu mRuRuuRRiuiiiRiummuumRRRiRRmRu RmRumumumimiRmuimRRmuumiRRRiRR RmRumumumimiRmuimRRmuumiRRRiRR RmRumumumimiRmuimRRmuumiRRRiRR RmRumumumimiRmuimRRmu...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 375000 375000 375001 375000 375001 375001 312500 312500 312501 312500 312501 312501 343750 343750 343751 343750 343751 343751 328125 328125 328126 328125 328126 328126 335938 335938 335939 335938 335939 3...
result:
ok 63 points
Test #13:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
RimiuiiuuimmRiimimuiiuuuiiimmR uumuiumumRiuuimumiimRiiuumuRiu iRiuuRumumumiiRRumRmiRRiuumiii iRiuuRumumumiiRRumRmiRRiuumiii iRiuuRumumumiiRRumRmiRRiuumiii iRiuuRumumumiiRRumRmiRRiuumiii iRiuuRumumumiiRRumRmiRRiuumiii miiuuimuiiimuuiimuiRRuimRRRRRm miiuuimuiiimuuiimuiRRuimRRRRRm iRiuuRumumumiiRRumRmi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 625000 625000 625001 625000 625001 625001 687500 687500 687501 687500 687501 687501 656250 656250 656251 656250 656251 656251 671875 671875 671876 671875 671876 671876 664063 664063 664064 664063 664064 6...
result:
ok 63 points
Test #14:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
mimimRRuRRRmummimRuiiuRRiiRiuu iiiiRimiimimRuRmuimRiRmRuRmiRm iiiiRimiimimRuRmuimRiRmRuRmiRm RuuiuRuiuRmiRumRRmummiuiiiiiu!
output:
0 0 0 0 1 1 0 1
result:
ok 4 points
Test #15:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
miRuRiuumuuimuRRiRimmmRRimmuui miRiRRuiRiiuuRRiiRiiiuimuRmiiu RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmRRmuuimuim RRuiuiiuiummRuuuuiRmR...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 875000 875000 875001 875000 875001 875001 937500 937500 937501 937500 937501 937501 968750 968750 968751 968750 968751 968751 984375 984375 984376 984375 984376 984376 992188 992188 992189 992188 992189 9...
result:
ok 59 points
Test #16:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
RRuuiiiiiiRummuRuumRmuiiiiuuui iuuiRuRiummRRimuRmiuuuiRiiuRmu iRmRiiuiuRiumummumummuiumuuRRR iRmRiiuiuRiumummumummuiumuuRRR uRimmuumRmumRiuuRuiiRuuRimRRRm iRmRiiuiuRiumummumummuiumuuRRR iRmRiiuiuRiumummumummuiumuuRRR uRimmuumRmumRiuuRuiiRuuRimRRRm iRmRiiuiuRiumummumummuiumuuRRR iRmRiiuiuRiumummumumm...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 750000 250001 750000 250001 750001 125000 875000 125001 875000 125001 875001 62500 937500 62501 937500 62501 937501 31250 968750 31251 968750 31251 968751 15625 984375 15626 984375 15626 984376 7812 992188 7813 992188 7813 992189 3906 9960...
result:
ok 63 points
Test #17:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
mRRuumRRmuRumRmimiimmiRiuiiRRm mRRuumRRmuRumRmimiimmiRiuiiRRi mRRuumRRmuRumRmimiimmiRiuiiRRR mRRuumRRmuRumRmimiimmiRiuiiRRR mRRuumRRmuRumRmimiimmiRiuiiRRR mRRuumRRmuRumRmimiimmiRiuiiRRu mRRuumRRmuRumRmimiimmiRiuiiRRR mRRuumRRmuRumRmimiimmiRiuiiRRR mRRuumRRmuRumRmimiimmiRiuiiRRu mRRuumRRmuRumRmimiimm...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 250000 750001 250000 750001 250001 875000 125000 875001 125000 875001 125001 937500 62500 937501 62500 937501 62501 968750 31250 968751 31250 968751 31251 984375 15625 984376 15625 984376 15626 992188 7812 992189 7812 992189 7813 996094 39...
result:
ok 59 points
Test #18:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
miiuRimumuumRiRiuRiiiRuRRumiRu miiuRimumuumRiRiuRiiiRuRRumiRR miiuRimumuumRiRiuRiiiRuRRumiRm miiuRimumuumRiRiuRiiiRuRRumiRm miiuRimumuumRiRiuRiiiRuRRumiRi miiuRimumuumRiRiuRiiiRuRRumiRi miiuRimumuumRiRiuRiiiRuRRumiRm miiuRimumuumRiRiuRiiiRuRRumiRm miiuRimumuumRiRiuRiiiRuRRumiRm miiuRimumuumRiRiuRiii...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 375000 375000 375001 375000 375001 375001 312500 312500 312501 312500 312501 312501 343750 343750 343751 343750 343751 343751 328125 328125 328126 328125 328126 328126 335938 335938 335939 335938 335939 3...
result:
ok 61 points
Test #19:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
iummmimiimRimumiRuimRimRRiRmuR iummmimiimRimumiRuimRimRRiRmui iummmimiimRimumiRuimRimRRiRmuu iummmimiimRimumiRuimRimRRiRmuu iummmimiimRimumiRuimRimRRiRmuu iummmimiimRimumiRuimRimRRiRmuu iummmimiimRimumiRuimRimRRiRmuu iummmimiimRimumiRuimRimRRiRmum iummmimiimRimumiRuimRimRRiRmum iummmimiimRimumiRuimR...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 625000 625000 625001 625000 625001 625001 687500 687500 687501 687500 687501 687501 656250 656250 656251 656250 656251 656251 671875 671875 671876 671875 671876 671876 664063 664063 664064 664063 664064 6...
result:
ok 61 points
Test #20:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
uRimimimiRumimRiRmuRiuummRiiRm uRimimimiRumimRiRmuRiuummRiiRu uRimimimiRumimRiRmuRiuummRiiRi uRimimimiRumimRiRmuRiuummRiiRR uRimimimiRumimRiRmuRiuummRiiRR uRimimimiRumimRiRmuRiuummRiiRR uRimimimiRumimRiRmuRiuummRiiRi uRimimimiRumimRiRmuRiuummRiiRR uRimimimiRumimRiRmuRiuummRiiRR uRimimimiRumimRiRmuRi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 125000 125000 125001 125000 125001 125001 62500 62500 62501 62500 62501 62501 31250 31250 31251 31250 31251 31251 15625 15625 15626 15625 15626 15626 7812 7812 7813 7812 7813 7813 3906 3906 3907 3906 3907...
result:
ok 61 points
Test #21:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
iumiimiRuimmuiRmuuuRiiRRmRiium iumiimiRuimmuiRmuuuRiiRRmRiiuu iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRiiRRmRiiuR iumiimiRuimmuiRmuuuRi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 875000 875000 875001 875000 875001 875001 937500 937500 937501 937500 937501 937501 968750 968750 968751 968750 968751 968751 984375 984375 984376 984375 984376 984376 992188 992188 992189 992188 992189 9...
result:
ok 61 points
Test #22:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
mmiuiimumiRiRuRuRmiRimRmuiimmu mmiuiimumiRiRuRuRmiRimRmuiimmm mmiuiimumiRiRuRuRmiRimRmuiimmi mmiuiimumiRiRuRuRmiRimRmuiimmi mmiuiimumiRiRuRuRmiRimRmuiimmR mmiuiimumiRiRuRuRmiRimRmuiimmi mmiuiimumiRiRuRuRmiRimRmuiimmi mmiuiimumiRiRuRuRmiRimRmuiimmR mmiuiimumiRiRuRuRmiRimRmuiimmi mmiuiimumiRiRuRuRmiRi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 750000 250001 750000 250001 750001 125000 875000 125001 875000 125001 875001 62500 937500 62501 937500 62501 937501 31250 968750 31251 968750 31251 968751 15625 984375 15626 984375 15626 984376 7812 992188 7813 992188 7813 992189 3906 9960...
result:
ok 61 points
Test #23:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
umuuuiRmuRiummRRumimRRiimmiiim RiiRiRRRiiRmmuiiuRuRRuiumRumui mRuiummRuRimmmRmmmuiiuuiuRimRR mRuiummRuRimmmRmmmuiiuuiuRimRR mRuiummRuRimmmRmmmuiiuuiuRimRR RuumRiiuumRmumRRuRiRmRiiimRiiu mRuiummRuRimmmRmmmuiiuuiuRimRR mRuiummRuRimmmRmmmuiiuuiuRimRR RuumRiiuumRmumRRuRiRmRiiimRiiu mRuiummRuRimmmRmmmuii...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 250000 750001 250000 750001 250001 875000 125000 875001 125000 875001 125001 937500 62500 937501 62500 937501 62501 968750 31250 968751 31250 968751 31251 984375 15625 984376 15625 984376 15626 992188 7812 992189 7812 992189 7813 996094 39...
result:
ok 60 points
Test #24:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
immRuRRmmRuRiimRimiuuumuRiRmum mmiumRumuuimimuuuRummuiimmiRRu uRmumuimRRmiuRuuumRmmuRRmiiRiR uRmumuimRRmiuRuuumRmmuRRmiiRiR mRimuiuimmRRmmiuRmRimuuuumimRi mRimuiuimmRRmmiuRmRimuuuumimRi uRmumuimRRmiuRuuumRmmuRRmiiRiR uRmumuimRRmiuRuuumRmmuRRmiiRiR uRmumuimRRmiuRuuumRmmuRRmiiRiR uRmumuimRRmiuRuuumRmm...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 375000 375000 375001 375000 375001 375001 312500 312500 312501 312500 312501 312501 343750 343750 343751 343750 343751 343751 328125 328125 328126 328125 328126 328126 335938 335938 335939 335938 335939 3...
result:
ok 59 points
Test #25:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
iuRRmRRmRuuuumuuuuumuRuimuRiui uRiRiRuRiuuuuimiuRRRRRRummmiuu mumumRimiumuRumumRiimRummiiiim mumumRimiumuRumumRiimRummiiiim mumumRimiumuRumumRiimRummiiiim mumumRimiumuRumumRiimRummiiiim mumumRimiumuRumumRiimRummiiiim umRuRiRmiiuuuuRuRumRmuiuRiRiRR umRuRiRmiiuuuuRuRumRmuiuRiRiRR mumumRimiumuRumumRiim...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 625000 625000 625001 625000 625001 625001 687500 687500 687501 687500 687501 687501 656250 656250 656251 656250 656251 656251 671875 671875 671876 671875 671876 671876 664063 664063 664064 664063 664064 6...
result:
ok 63 points
Test #26:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
immRRmRuuRmRiRRmmuRiiuimiiumRu miuiRmuiiumumRRmmmimiiuRmmmuiR iuimuRRRmRiRiRimuiimmmuRmiuuRi uiRRuRiiumuimiiuiumRimRmmRRmim uiRRuRiiumuimiiuiumRimRmmRRmim uiRRuRiiumuimiiuiumRimRmmRRmim iuimuRRRmRiRiRimuiimmmuRmiuuRi uiRRuRiiumuimiiuiumRimRmmRRmim uiRRuRiiumuimiiuiumRimRmmRRmim iuimuRRRmRiRiRimuiimm...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 250000 250000 250001 250000 250001 250001 125000 125000 125001 125000 125001 125001 62500 62500 62501 62500 62501 62501 31250 31250 31251 31250 31251 31251 15625 15625 15626 15625 15626 15626 7812 7812 7813 7812 7813 7813 3906 3906 3907 3906 3907...
result:
ok 63 points
Test #27:
score: -100
Runtime Error
input:
mmiRRRRmRmuummmmumRmiiimuRmuRi mmiRRRRmRmuummmmumRmiiimuRmuRu mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmiiimuRmuRR mmiRRRRmRmuummmmumRmi...
output:
0 0 0 0 1 1 500000 500000 500001 500000 500001 500001 750000 750000 750001 750000 750001 750001 875000 875000 875001 875000 875001 875001 937500 937500 937501 937500 937501 937501 968750 968750 968751 968750 968751 968751 984375 984375 984376 984375 984376 984376 992188 992188 992189 992188 992189 9...