QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#108351 | #6504. Flower's Land 2 | Crysfly | AC ✓ | 753ms | 105456kb | C++17 | 4.2kb | 2023-05-24 19:03:35 | 2024-11-22 20:26:42 |
Judging History
你现在查看的是最新测评结果
- [2024-11-22 20:26:09]
- hack成功,自动添加数据
- (/hack/1243)
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-05-24 19:03:35]
- 提交
answer
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
using namespace std;
inline int read()
{
char c=getchar();int x=0;bool f=0;
for(;!isdigit(c);c=getchar())f^=!(c^45);
for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
if(f)x=-x;return x;
}
#define mod 998244353
struct modint{
int x;
modint(int o=0){x=o;}
modint &operator = (int o){return x=o,*this;}
modint &operator +=(modint o){return x=x+o.x>=mod?x+o.x-mod:x+o.x,*this;}
modint &operator -=(modint o){return x=x-o.x<0?x-o.x+mod:x-o.x,*this;}
modint &operator *=(modint o){return x=1ll*x*o.x%mod,*this;}
modint &operator ^=(int b){
modint a=*this,c=1;
for(;b;b>>=1,a*=a)if(b&1)c*=a;
return x=c.x,*this;
}
modint &operator /=(modint o){return *this *=o^=mod-2;}
friend modint operator +(modint a,modint b){return a+=b;}
friend modint operator -(modint a,modint b){return a-=b;}
friend modint operator *(modint a,modint b){return a*=b;}
friend modint operator /(modint a,modint b){return a/=b;}
friend modint operator ^(modint a,int b){return a^=b;}
friend bool operator ==(modint a,int b){return a.x==b;}
friend bool operator !=(modint a,int b){return a.x!=b;}
bool operator ! () {return !x;}
modint operator - () {return x?mod-x:0;}
bool operator <(const modint&b)const{return x<b.x;}
};
inline modint qpow(modint x,int y){return x^y;}
#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
#define maxn 500005
#define inf 0x3f3f3f3f
int n,m,k;
struct mat{
modint a[2][2];
modint*operator[](int x){return a[x];}
mat(modint A=0,modint B=0,modint C=0,modint D=0){a[0][0]=A,a[0][1]=B,a[1][0]=C,a[1][1]=D;}
mat operator *(mat b)const{
return mat(
a[0][0]*b[0][0]+a[0][1]*b[1][0],
a[0][0]*b[0][1]+a[0][1]*b[1][1],
a[1][0]*b[0][0]+a[1][1]*b[1][0],
a[1][0]*b[0][1]+a[1][1]*b[1][1]
);
}
};
mt19937_64 rnd(198964);
int a[maxn];
mat val[5],fval[5];
mat gen(){
mat a;
For(i,0,1)For(j,0,1)a[i][j]=rnd()%(mod-1)+1;
return a;
}
int pi[505],pj[505];
bool getinv(mat&a){
mat tmp=a;
For(k,0,1){
For(i,k,1)
For(j,k,1)
if(a[i][j].x){pi[k]=i,pj[k]=j;break;}
For(i,0,1)swap(a[k][i],a[pi[k]][i]);
For(i,0,1)swap(a[i][k],a[i][pj[k]]);
if(!a[k][k].x)return 0;
a[k][k]=1/a[k][k];
For(j,0,1)if(j!=k)a[k][j]*=a[k][k];
For(i,0,1)if(i!=k)For(j,0,1)if(j!=k)a[i][j]-=a[i][k]*a[k][j];
For(i,0,1)if(i!=k)a[i][k]=-a[i][k]*a[k][k];
}
Rep(k,1,0){
For(i,0,1)swap(a[pj[k]][i],a[k][i]);
For(i,0,1)swap(a[i][pi[k]],a[i][k]);
}
tmp=tmp*a;
return 1;
}
mat tr[maxn<<2][3],tmp[3];
int tag[maxn<<2];
void up(int p){
For(i,0,2)
tr[p][i]=tr[p<<1][i]*tr[p<<1|1][i];
}
void build(int p,int l,int r){
if(l==r){
For(i,0,2){
if(l%2)tr[p][i]=val[(a[l]+i)%3];
else tr[p][i]=fval[(a[l]+i)%3];
}
return;
}
int mid=l+r>>1;
build(p<<1,l,mid),build(p<<1|1,mid+1,r),up(p);
}
void pt(int p,int v){
if(!v)return;
tag[p]=(tag[p]+v)%3;
For(i,0,2)tmp[i]=tr[p][(i+v)%3];
For(i,0,2)tr[p][i]=tmp[i];
}
void down(int p){
if(tag[p]){
pt(p<<1,tag[p]),pt(p<<1|1,tag[p]);
tag[p]=0;
}
}
void mdf(int p,int l,int r,int nl,int nr){
if(l>=nl&&r<=nr)return pt(p,1);
int mid=l+r>>1; down(p);
if(nl<=mid)mdf(p<<1,l,mid,nl,nr);
if(nr>mid)mdf(p<<1|1,mid+1,r,nl,nr);
up(p);
}
mat ask(int p,int l,int r,int ql,int qr){
if(l>=ql&&r<=qr)return tr[p][0];
int mid=l+r>>1; down(p);
if(ql>mid)return ask(p<<1|1,mid+1,r,ql,qr);
if(qr<=mid)return ask(p<<1,l,mid,ql,qr);
return ask(p<<1,l,mid,ql,qr)*ask(p<<1|1,mid+1,r,ql,qr);
}
signed main()
{
n=read(),m=read();
string A; cin>>A;
For(i,1,n)a[i]=A[i-1]&3;
For(i,0,2){
val[i]=gen(); fval[i]=val[i];
while(!getinv(fval[i]))val[i]=fval[i]=gen();
// mat res=(val[i]*fval[i]);
}
build(1,1,n);
mat I;
I[0][0]=I[1][1]=1;
For(_,1,m){
int op=read(),l=read(),r=read();
if(op==1)mdf(1,1,n,l,r);
else{
mat res=ask(1,1,n,l,r);
// For(i,0,1)For(j,0,1)cout<<res[i][j].x<<" \n"[j];
bool ok=1;
For(i,0,1)For(j,0,1)if(res[i][j].x!=(i==j))ok=0;
puts(ok?"Yes":"No");
}
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 17ms
memory: 99864kb
input:
8 9 01211012 2 4 5 2 3 6 1 6 8 1 6 8 2 3 6 2 1 8 1 1 1 1 7 7 2 1 8
output:
Yes No Yes No Yes
result:
ok 5 token(s): yes count is 3, no count is 2
Test #2:
score: 0
Accepted
time: 157ms
memory: 100116kb
input:
100 500000 0011010001000000000110011111000010100111000010101100101001111000001101001000100111101000110000011011 1 6 55 1 7 84 2 62 79 2 59 62 1 59 66 2 10 13 1 25 67 2 33 88 1 7 11 2 72 81 2 71 90 1 15 38 2 3 100 2 59 76 1 13 83 2 11 46 2 25 52 1 25 55 1 35 42 1 19 87 1 26 86 2 83 94 1 27 74 2 42 47...
output:
No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No Yes Yes No No No No No No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No N...
result:
ok 248102 token(s): yes count is 9322, no count is 238780
Test #3:
score: 0
Accepted
time: 161ms
memory: 99812kb
input:
100 500000 0210102000201220021100220012101022120002221021222001012101121221021110012101010200020222021101002100 2 8 69 2 37 98 2 13 22 2 20 25 2 16 89 1 47 61 1 1 70 2 19 68 1 31 91 2 6 39 2 16 51 2 44 57 2 24 27 1 25 64 1 20 59 1 18 98 2 45 66 1 2 75 2 16 89 2 85 96 1 12 45 1 9 22 1 66 87 2 13 30 2...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No Yes No No No No Yes No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No N...
result:
ok 250664 token(s): yes count is 9342, no count is 241322
Test #4:
score: 0
Accepted
time: 272ms
memory: 98068kb
input:
1000 500000 010001011011010100000011110001101101101011110010111010011110010101100010110001110100010111010101100100111100111111100011001000000101100100101111110111011011110000101010111001111100110001100000011011100011111111010100101010110110100011110000101001100010110111010110001000100110110100000111...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 250675 token(s): yes count is 988, no count is 249687
Test #5:
score: 0
Accepted
time: 261ms
memory: 97824kb
input:
1000 500000 202011221110002000201111000002220121011012110120222101212012120002101120222210012210112202011121222201200211211122210122120201021222202222201102112101010210202120110111010212122020200221112122022202121200200110010012100002111210210002200210011210011222212012011010201121102121022200200110...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 248104 token(s): yes count is 1037, no count is 247067
Test #6:
score: 0
Accepted
time: 742ms
memory: 103808kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes No Yes Yes No Yes No No No No Yes No No No No No No No No No Yes No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No Yes N...
result:
ok 248044 token(s): yes count is 37, no count is 248007
Test #7:
score: 0
Accepted
time: 753ms
memory: 104764kb
input:
500000 500000 0001111011000101100010000100000001110010100101010011010010101010011001000101011110111000111100100001000000101101011001101001011010110111101100110111111110010011111111111100110000001100100001100010011000000001011011110010100111101010001101000100110011111110111000110111110000101000010001...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 250747 token(s): yes count is 1, no count is 250746
Test #8:
score: 0
Accepted
time: 744ms
memory: 103924kb
input:
500000 500000 1001012121120221010111021201201221111112012022002200212020201011201100002101022020120101222010011021020121102110211202120100002100121201102122011220122201220100100210222110112212220002122002110022112000012111101112211102120012120102001020221021211022111211201120001022122011201112101111...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 248066 token(s): yes count is 2, no count is 248064
Test #9:
score: 0
Accepted
time: 406ms
memory: 103708kb
input:
500000 500000 0001111011000101100010000100000001110010100101010011010010101010011001000101011110111000111100100001000000101101011001101001011010110111101100110111111110010011111111111100110000001100100001100010011000000001011011110010100111101010001101000100110011111110111000110111110000101000010001...
output:
Yes No Yes No No No No No No No No No Yes No No No No Yes No No No Yes Yes No No No Yes No No No Yes No No Yes No No No No No No No Yes No Yes No No No No No No Yes No No No No No No No No No No No No No Yes No No No Yes No No No No No No No Yes No No No No No No No No No No No No No No No Yes Yes N...
result:
ok 249864 token(s): yes count is 25722, no count is 224142
Test #10:
score: 0
Accepted
time: 410ms
memory: 104580kb
input:
500000 500000 1001012121120221010111021201201221111112012022002200212020201011201100002101022020120101222010011021020121102110211202120100002100121201102122011220122201220100100210222110112212220002122002110022112000012111101112211102120012120102001020221021211022111211201120001022122011201112101111...
output:
No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No Yes No No No No Yes No Yes No No No No No No No No No No No No No No No Yes No No No No No No No No No No Yes No No No No No No No No No No No No No...
result:
ok 250064 token(s): yes count is 16110, no count is 233954
Test #11:
score: 0
Accepted
time: 400ms
memory: 105448kb
input:
500000 500000 0110100110010110100101100110100110010110011010010110100110010110100101100110100101101001100101100110100110010110100101100110100110010110011010010110100110010110011010011001011010010110011010010110100110010110100101100110100110010110011010010110100110010110100101100110100101101001100101...
output:
No No Yes No Yes No No Yes No Yes No Yes No Yes Yes No No No No No Yes No No No Yes No Yes No Yes No Yes No Yes Yes No Yes Yes Yes No Yes No Yes Yes No No No No No No No No Yes No Yes Yes No Yes Yes Yes No No No Yes Yes No Yes Yes No No No Yes No No No Yes Yes No No Yes Yes No Yes No No No Yes No No...
result:
ok 499764 token(s): yes count is 13197, no count is 486567
Test #12:
score: 0
Accepted
time: 406ms
memory: 105268kb
input:
500000 500000 0112122012202001122020012001011212202001200101122001011201121220122020012001011220010112011212202001011201121220011212201220200112202001200101122001011201121220200101120112122001121220122020012001011201121220011212201220200101121220122020011220200120010112122020012001011220010112011212...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 499741 token(s): yes count is 4, no count is 499737
Test #13:
score: 0
Accepted
time: 439ms
memory: 104612kb
input:
500000 500000 1201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 495082 token(s): yes count is 25440, no count is 469642
Test #14:
score: 0
Accepted
time: 436ms
memory: 104880kb
input:
500000 500000 1201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201...
output:
No No Yes Yes No No No No Yes No Yes No No No No No No Yes No No No No No No No No No Yes No No Yes Yes No No No No No No Yes No No No No No No No No No Yes No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No N...
result:
ok 495214 token(s): yes count is 25405, no count is 469809
Test #15:
score: 0
Accepted
time: 440ms
memory: 104884kb
input:
500000 500000 1201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201201...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 495041 token(s): yes count is 26778, no count is 468263
Test #16:
score: 0
Accepted
time: 730ms
memory: 105096kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No No No No No Yes No No Yes Yes Yes No Yes Yes No No Yes No Yes No Yes Yes No No No No Yes Yes Yes Yes No Yes Yes Yes No No No Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes Yes Yes No No Yes Yes No Yes No Yes Yes Yes No No Y...
result:
ok 251625 token(s): yes count is 167813, no count is 83812
Test #17:
score: 0
Accepted
time: 717ms
memory: 104020kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes Yes Yes Yes Yes No Yes Yes Yes No Yes No No No Yes Yes No No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes No Yes Yes No Yes Yes No Yes Yes Yes Yes Yes No No Yes No Yes Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes Yes No No Yes Yes No Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes ...
result:
ok 251611 token(s): yes count is 167452, no count is 84159
Test #18:
score: 0
Accepted
time: 695ms
memory: 104116kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes No Yes Yes Yes No No Yes No Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes No Yes No Yes No No No Yes No No No Yes No Yes No No No Yes Yes No Yes No Yes...
result:
ok 251639 token(s): yes count is 167829, no count is 83810
Test #19:
score: 0
Accepted
time: 697ms
memory: 105324kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes Yes Yes No Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No Yes No Yes Yes Yes Yes Yes Yes No Yes No Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes No No Yes No No Yes No No No Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes ...
result:
ok 249959 token(s): yes count is 166274, no count is 83685
Test #20:
score: 0
Accepted
time: 682ms
memory: 104152kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes Yes Yes Yes No Yes No No Yes No Yes Yes Yes Yes Yes No Yes Yes No No Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No Yes Yes Yes Yes No Yes Yes Yes Yes Yes No No No No No No Yes Yes Yes Yes Yes No No Yes Yes No No Yes No Yes Yes Yes Yes No No No Yes No Yes No Yes Yes Yes Yes ...
result:
ok 251590 token(s): yes count is 167841, no count is 83749
Test #21:
score: 0
Accepted
time: 656ms
memory: 103624kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
Yes No Yes Yes Yes Yes No Yes Yes No No No Yes Yes Yes No Yes Yes Yes No Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No Yes No No Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Ye...
result:
ok 249944 token(s): yes count is 167276, no count is 82668
Test #22:
score: 0
Accepted
time: 625ms
memory: 104964kb
input:
500000 500000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
No Yes Yes Yes Yes Yes No No No Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes No No Yes Yes Yes No Yes No Yes Yes Yes No Yes Yes Yes No Yes No No Yes Yes Yes Yes Yes Yes Yes No Yes No Yes No Yes Yes No Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes ...
result:
ok 249967 token(s): yes count is 168649, no count is 81318
Test #23:
score: 0
Accepted
time: 473ms
memory: 105380kb
input:
500000 500000 2120211202121010200201010120211202102102011020120121200212101210200201212020122102020121011012101021211212012020122102020212122121202020200202020102011020101201211210210212011021201210100101210212100121201210100101210121011012101021200212010101200210101020200202012101022010121010200201...
output:
No No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No...
result:
ok 249676 token(s): yes count is 13, no count is 249663
Test #24:
score: 0
Accepted
time: 476ms
memory: 105368kb
input:
500000 500000 1210202120021202012120120201011010202102012121010110101212102021020201102020120212121021211212012121202101210220121012021201212120021212102121010121200212101012021012020220202101202120212101101212021201020212022021202010120102121001212010210102021020020120201012121010200201012121012010...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 249788 token(s): yes count is 13, no count is 249775
Test #25:
score: 0
Accepted
time: 509ms
memory: 104380kb
input:
500000 500000 1021201212020202010212020120120201212012010212121221212120102102121020210210202120102020202121021201201010121210121010202020202010120121010102120101200210102120101012102101020202020201012101212101010212121210120212101012021021020102121201212020201010010102020212102121201020120120210101...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 249720 token(s): yes count is 21, no count is 249699
Test #26:
score: 0
Accepted
time: 556ms
memory: 104528kb
input:
500000 500000 2102012102020210212121020120121010120121012012021010212101212102012010201212121012101210212102102120210201020121012021201021012010212021210202012010212020102121202021202121012121021010120210210202021212020212120121202012101201201012021212101210120101020201020121020210121020212012021212...
output:
No No No No No Yes No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No N...
result:
ok 248946 token(s): yes count is 159, no count is 248787
Test #27:
score: 0
Accepted
time: 536ms
memory: 105324kb
input:
500000 500000 2102121210121212120202012120202010201212102010201021012020201020210210101210121201021212020210102121012010210101020201021010202010201201021010101020212020101210120101201210102020102010101021202102120210121010201012120121202102020121010212120102102102020120121010121010102012012021012010...
output:
No No No No No Yes Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No N...
result:
ok 249807 token(s): yes count is 383, no count is 249424
Test #28:
score: 0
Accepted
time: 533ms
memory: 104244kb
input:
500000 500000 2120201021210101202021201212120202021010102021010212020102101010201021010201201012010101210101212012102102101010212102121202102010212120212102020212020121012012021020101210102012102021012121010121020101010210201021201021201201020202010202012020201201210101021010101202021020121202012020...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 248859 token(s): yes count is 994, no count is 247865
Test #29:
score: 0
Accepted
time: 509ms
memory: 105456kb
input:
500000 500000 1021012012010212010210120121012010120202102120202121021021202012121020201021202012120121201202021021020121012101201010101212120201212020120101210210202010210102102102021212021202120212121201201210201210102010120202021212121010121201021021202102020102121202010212020121020210212120212012...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No ...
result:
ok 248886 token(s): yes count is 2083, no count is 246803
Test #30:
score: 0
Accepted
time: 529ms
memory: 105104kb
input:
500000 500000 1202021012101201201021212121212121201212121012102020120210101212101201212020101020101210101212120201010201201021202121202020201201202010210120201202121010121010102102121010121021212021202021021202120102101202102020210102120202020212120202120212021020121212020102120121012120201202120121...
output:
No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No Yes No No No ...
result:
ok 248858 token(s): yes count is 4672, no count is 244186
Test #31:
score: 0
Accepted
time: 362ms
memory: 101828kb
input:
500000 500000 0100201020101001010102010202020201010201002020102020101001010201020100100201010020010101010102020202010010201020202020200102002010001020201010010102001000101010020000101020102001002020201002020101020101010102010020201010102020200010102020101002020002002002010101010201020020102020101020...
output:
No No No No No No No No No No Yes Yes No No Yes No Yes No Yes No No Yes Yes No Yes Yes Yes No Yes Yes Yes No No No No No Yes No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No No No No Yes No No No No No No No No No No No No No No No No No No No No No No No No No No...
result:
ok 437390 token(s): yes count is 73249, no count is 364141
Extra Test:
score: 0
Extra Test Passed