QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#863734 | #8830. Breaking Bad | operator_ | AC ✓ | 50ms | 67344kb | C++17 | 2.2kb | 2025-01-19 21:45:25 | 2025-01-19 21:45:26 |
Judging History
answer
//Date: 2025-01-19 20:32:02
#include<bits/stdc++.h>
using namespace std;
#define P emplace_back
#define CLEAR(a,v) memset((a),(v),sizeof((a)))
#define rep(i,a,b) for(int (i)=(a);(i)<=(b);(i)++)
#define per(i,a,b) for(int (i)=(a);(i)>=(b);(i)--)
char buf[1<<20],*p1,*p2;
#define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<20,stdin),p1==p2)?EOF:*p1++)
inline int rd() {
int s=0,m=0;char ch=getchar();
while(!isdigit(ch)) {if(ch=='-')m=1;ch=getchar();}
while( isdigit(ch)) s=(s<<3)+(s<<1)+(ch^48),ch=getchar();
return m?-s:s;
}
int n,a[1005][1005],x[1005],y[1005],f1[1005][1025][5],f2[1005][1025][5],f3[11][1025][1025][5],vis[5],res;
signed main() {
cin>>n;rep(i,1,n) rep(j,1,n) a[i][j]=rd();
rep(t,1,5) {
int fl=0;rep(i,t*2,n) if(!fl) rep(j,t*2,n) if((a[2*t-1][2*t-1]+a[i][j])%5!=(a[2*t-1][j]+a[i][2*t-1])%5)
{rep(k,1,n) swap(a[i][k],a[t*2][k]);rep(k,1,n) swap(a[k][j],a[k][t*2]);fl=1;break;}
if(!fl) {
t=t*2-1;
rep(i,t,n) x[i]=a[t][i],y[i]=(a[i][t]-a[t][t]+5)%5;
rep(j,t,n) {res+=x[j];rep(i,1,n) a[i][j]=(a[i][j]+5-x[j])%5;}
rep(i,t,n) {res+=y[i];rep(j,1,n) a[i][j]=(a[i][j]+5-y[i])%5;}
f1[t-1][0][0]=1,f2[t-1][0][0]=1,f3[0][0][0][0]=1;
rep(j,t,n) rep(S,0,(1<<t-1)-1) rep(x,0,4) {
f1[j][S][x]=f1[j-1][S][x];
rep(i,1,t-1) if(S>>i-1&1) f1[j][S][x]|=f1[j-1][S^(1<<i-1)][(x-a[i][j]+5)%5];
}
rep(i,t,n) rep(S,0,(1<<t-1)-1) rep(x,0,4) {
f2[i][S][x]=f2[i-1][S][x];
rep(j,1,t-1) if(S>>j-1&1) f2[i][S][x]|=f2[i-1][S^(1<<j-1)][(x-a[i][j]+5)%5];
}
rep(i,1,t-1) rep(S,0,(1<<i)-1) rep(T,0,(1<<t-1)-1) rep(x,0,4) {
if((S>>i-1&1)==0) f3[i][S][T][x]|=f3[i-1][S][T][x];
else rep(j,1,t-1) if(T>>j-1&1) f3[i][S][T][x]|=f3[i-1][S^(1<<i-1)][T^(1<<j-1)][(x-a[i][j]+5)%5];
}
rep(S,0,(1<<t-1)-1) rep(x,0,4) if(f1[n][S][x]) rep(T,0,(1<<t-1)-1) rep(y,0,4) if(f2[n][T][y])
rep(z,0,4) vis[(x+y+z)%5]|=f3[t-1][(1<<t-1)-1-S][(1<<t-1)-1-T][z];
res%=5;rep(i,0,4) putchar(vis[(i-res+5)%5]?'Y':'N');return 0;
}
}
puts("YYYYY");
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 13860kb
input:
2 0 4 4 0
output:
YNNYN
result:
ok "YNNYN"
Test #2:
score: 0
Accepted
time: 0ms
memory: 11844kb
input:
2 1 1 1 1
output:
NNYNN
result:
ok "NNYNN"
Test #3:
score: 0
Accepted
time: 0ms
memory: 13896kb
input:
4 0 0 1 0 0 1 0 1 0 0 0 0 1 1 0 0
output:
YYYYN
result:
ok "YYYYN"
Test #4:
score: 0
Accepted
time: 0ms
memory: 13900kb
input:
4 0 0 0 1 0 1 0 1 1 0 0 0 0 1 0 0
output:
YYYYN
result:
ok "YYYYN"
Test #5:
score: 0
Accepted
time: 0ms
memory: 15944kb
input:
10 1 4 2 0 0 2 0 1 3 3 0 3 1 4 4 1 4 0 2 2 1 4 2 0 0 2 0 1 0 3 0 3 1 4 4 1 4 0 2 2 4 2 0 3 3 0 3 4 1 1 2 0 3 1 1 3 1 2 4 4 4 2 0 3 3 0 3 4 1 1 2 0 3 1 1 3 1 2 4 4 1 4 2 0 0 2 0 1 3 3 3 1 4 2 2 4 2 3 0 0
output:
NYNNY
result:
ok "NYNNY"
Test #6:
score: 0
Accepted
time: 0ms
memory: 17896kb
input:
10 4 4 4 1 3 4 1 4 3 0 3 3 3 0 2 3 0 3 2 4 3 3 3 0 2 3 0 3 2 4 4 4 4 1 3 4 1 4 3 0 2 2 2 4 1 2 4 2 1 3 2 2 2 4 1 3 4 2 1 3 4 4 4 1 3 4 1 4 3 0 3 3 3 0 2 3 0 3 2 4 2 2 2 4 1 2 4 2 1 3 4 4 4 1 3 4 1 1 3 0
output:
YYYNY
result:
ok "YYYNY"
Test #7:
score: 0
Accepted
time: 1ms
memory: 13900kb
input:
10 1 2 0 4 2 3 4 0 2 3 0 1 4 3 1 2 3 4 1 2 4 0 3 2 0 1 2 3 0 1 1 2 0 4 2 3 4 0 2 3 3 4 2 1 4 0 1 2 4 0 0 1 4 3 1 2 3 4 1 2 2 3 1 0 3 4 0 1 3 4 3 1 1 1 4 0 1 2 4 0 1 2 0 4 2 3 4 0 2 3 1 3 0 4 2 3 4 0 2 3
output:
NYYYY
result:
ok "NYYYY"
Test #8:
score: 0
Accepted
time: 0ms
memory: 11856kb
input:
10 3 4 0 3 2 2 0 4 0 2 0 1 2 0 4 4 2 1 2 4 2 3 4 2 1 1 4 3 4 1 0 1 2 0 4 4 2 1 2 4 0 1 2 0 4 4 2 1 2 4 0 1 2 0 4 4 2 1 2 4 3 4 0 3 2 2 0 4 0 2 0 1 2 0 4 4 2 1 2 4 3 4 0 3 2 2 0 4 0 2 0 1 2 0 4 4 2 1 2 4
output:
NYNNN
result:
ok "NYNNN"
Test #9:
score: 0
Accepted
time: 0ms
memory: 17868kb
input:
10 4 1 3 1 2 0 3 2 4 4 0 2 4 2 3 1 4 3 0 0 1 1 1 1 2 0 3 2 4 1 2 4 1 4 0 3 1 0 2 2 1 3 0 3 4 2 0 4 1 1 2 4 1 4 0 3 1 0 2 2 2 4 1 4 0 3 1 0 2 2 0 2 4 2 3 1 4 3 0 0 3 0 2 1 1 4 2 1 3 3 4 1 3 1 2 0 3 2 4 4
output:
YYYYY
result:
ok "YYYYY"
Test #10:
score: 0
Accepted
time: 0ms
memory: 9804kb
input:
10 1 2 0 2 4 2 3 1 2 1 4 0 3 0 2 0 1 4 0 4 0 1 4 1 3 1 2 0 1 0 0 1 4 1 3 1 2 0 1 0 3 4 2 4 1 4 0 3 4 3 4 0 3 0 2 0 1 4 0 4 0 1 4 1 3 1 2 0 1 0 0 1 4 1 3 1 2 0 1 0 3 4 2 4 1 4 0 3 4 3 0 1 4 1 3 1 2 0 1 0
output:
NNNYN
result:
ok "NNNYN"
Test #11:
score: 0
Accepted
time: 0ms
memory: 22088kb
input:
10 1 4 1 2 1 3 3 2 1 2 0 3 0 1 0 2 2 1 0 1 0 4 0 3 0 2 2 1 0 1 1 4 1 2 1 3 3 2 1 2 4 2 4 0 4 1 1 0 4 0 1 1 1 4 1 0 3 2 1 2 0 0 0 1 0 2 2 1 0 1 2 0 2 3 2 4 4 3 2 3 2 0 2 3 2 4 4 3 2 3 2 0 2 3 2 4 4 3 2 3
output:
YYYYY
result:
ok "YYYYY"
Test #12:
score: 0
Accepted
time: 0ms
memory: 15944kb
input:
10 1 2 0 1 4 0 1 2 2 2 1 2 0 1 4 3 1 2 2 2 0 1 4 0 3 1 0 1 1 1 1 2 0 1 4 3 1 2 2 2 3 4 2 3 1 4 3 4 4 4 0 1 4 0 3 1 0 1 1 1 4 0 3 4 2 0 4 0 0 0 3 4 2 3 1 4 3 4 4 4 4 0 3 4 2 0 4 0 0 0 0 1 4 0 3 1 0 1 1 1
output:
YNYNY
result:
ok "YNYNY"
Test #13:
score: 0
Accepted
time: 0ms
memory: 22092kb
input:
10 1 3 0 0 2 1 3 4 3 3 3 3 0 0 4 1 3 4 3 3 1 1 3 3 2 4 1 2 1 1 2 4 1 1 3 2 4 0 4 4 4 1 3 3 0 4 1 2 1 1 2 4 1 1 3 2 4 0 4 4 0 2 4 4 1 0 2 3 2 2 3 0 2 2 4 3 0 1 0 0 3 0 2 2 4 3 0 1 0 0 4 2 4 4 1 0 2 3 2 2
output:
YYYNY
result:
ok "YYYNY"
Test #14:
score: 0
Accepted
time: 0ms
memory: 13832kb
input:
10 2 0 3 1 3 0 0 0 4 1 1 4 2 0 2 4 4 4 3 0 2 0 3 1 3 0 0 0 4 1 1 4 2 0 2 4 4 4 3 0 1 4 2 0 2 4 4 4 3 0 3 3 4 2 4 1 1 1 0 2 3 1 4 2 4 1 1 1 0 2 4 2 0 3 0 2 2 2 1 3 3 1 4 2 4 1 1 1 0 2 1 4 2 0 2 4 4 4 3 0
output:
YNYNN
result:
ok "YNYNN"
Test #15:
score: 0
Accepted
time: 9ms
memory: 50216kb
input:
1000 3 4 1 2 4 1 0 3 0 4 1 4 3 1 4 4 1 0 1 2 3 1 0 1 3 4 4 0 3 0 3 2 2 1 0 4 1 3 3 0 3 1 3 2 2 0 3 3 2 2 3 0 4 2 1 2 1 2 1 4 2 4 1 4 2 4 3 2 0 3 0 4 2 1 2 3 3 0 2 0 3 3 1 1 0 3 4 3 2 0 4 0 3 4 4 2 3 4 2 3 4 2 1 3 2 2 4 1 0 2 2 4 0 1 2 0 4 1 3 2 3 2 2 2 1 4 4 4 2 0 0 4 4 1 3 4 0 2 2 3 1 1 3 2 3 2 3 0...
output:
NNNYN
result:
ok "NNNYN"
Test #16:
score: 0
Accepted
time: 9ms
memory: 57516kb
input:
1000 2 3 0 1 0 0 0 1 1 4 1 4 2 3 0 3 4 2 3 2 4 2 1 1 1 1 0 0 3 3 2 0 2 2 2 4 3 0 3 3 3 0 1 3 0 2 0 1 0 0 0 3 1 4 3 1 4 0 3 4 4 1 3 3 4 0 1 4 2 3 0 1 0 0 2 3 1 4 0 0 2 1 2 3 3 4 4 3 3 2 0 0 4 3 2 3 3 2 4 0 2 2 3 0 3 2 4 1 0 2 4 2 4 1 2 1 3 0 3 3 0 1 1 0 2 3 0 2 4 1 4 3 4 1 2 2 2 4 0 1 3 3 0 0 1 3 2 4...
output:
NYYYY
result:
ok "NYYYY"
Test #17:
score: 0
Accepted
time: 8ms
memory: 54932kb
input:
1000 3 3 2 2 0 1 0 1 0 4 3 3 2 2 4 3 0 1 3 0 1 3 4 2 1 3 4 3 0 1 2 1 4 4 2 4 1 1 3 0 0 2 2 0 1 1 2 1 4 2 0 1 0 0 1 3 0 2 0 3 1 2 1 0 3 2 1 4 4 0 3 1 2 4 0 2 3 4 3 0 1 0 0 3 4 2 4 2 3 1 3 1 4 3 0 2 2 1 3 2 3 2 4 2 4 4 3 1 2 0 4 4 3 4 2 2 3 4 0 1 4 3 1 3 0 0 2 2 0 0 2 0 4 0 1 0 1 3 1 2 0 4 2 3 4 3 2 2...
output:
NNYYY
result:
ok "NNYYY"
Test #18:
score: 0
Accepted
time: 10ms
memory: 58308kb
input:
1000 2 3 0 0 0 4 2 0 4 1 4 2 4 3 2 0 1 2 3 1 1 4 0 0 1 3 0 0 4 4 4 2 4 4 3 2 2 4 1 1 4 0 3 4 4 2 2 4 1 2 2 1 0 2 2 0 2 0 1 0 2 0 0 2 0 0 3 2 3 1 3 2 4 2 2 1 0 2 4 4 2 3 2 4 2 2 3 0 4 3 3 0 3 2 2 2 1 2 2 4 1 2 4 1 1 2 0 2 4 4 0 4 0 3 1 3 1 0 0 4 0 1 1 1 0 3 0 2 1 2 3 4 3 1 3 3 3 4 2 2 1 3 2 4 0 3 2 1...
output:
NYYYY
result:
ok "NYYYY"
Test #19:
score: 0
Accepted
time: 8ms
memory: 53256kb
input:
1000 3 3 2 0 1 1 4 3 3 1 1 2 2 2 2 1 2 4 1 2 4 0 2 1 0 2 2 4 4 2 1 0 1 0 2 2 1 4 2 1 0 1 3 1 0 0 3 4 3 0 2 4 2 0 4 0 0 0 0 4 4 2 0 3 4 1 2 1 1 3 1 0 3 3 1 2 1 3 3 0 3 4 3 0 3 4 4 4 1 1 4 3 0 2 3 3 2 1 0 2 0 3 2 0 3 4 4 3 0 0 0 1 3 1 2 0 1 2 4 2 4 3 0 1 4 0 1 3 1 3 1 0 4 2 2 1 2 4 2 1 4 2 0 1 1 0 1 4...
output:
NYYYN
result:
ok "NYYYN"
Test #20:
score: 0
Accepted
time: 7ms
memory: 53820kb
input:
1000 1 1 4 3 1 2 1 0 0 0 0 3 1 3 0 2 3 4 4 2 2 3 2 4 3 0 0 0 3 4 3 0 4 1 4 3 0 2 3 3 1 4 1 4 2 2 3 1 4 4 3 1 1 1 4 0 0 1 3 2 3 2 4 2 0 1 3 3 0 1 4 4 2 3 2 4 2 0 3 4 0 3 4 0 4 2 0 3 4 2 4 1 1 3 0 4 0 1 0 2 3 0 1 0 3 4 0 4 4 2 2 2 3 0 3 0 3 1 4 1 4 0 0 1 1 1 4 0 1 4 0 2 1 4 3 3 2 0 2 3 4 0 4 1 3 3 3 2...
output:
NYYNN
result:
ok "NYYNN"
Test #21:
score: 0
Accepted
time: 8ms
memory: 53996kb
input:
1000 1 4 1 4 4 4 2 4 0 2 2 0 1 0 4 3 0 3 2 4 0 0 1 0 4 3 4 4 1 1 4 2 2 4 0 0 4 3 1 4 3 1 0 0 3 1 2 1 2 4 4 4 1 1 3 2 0 3 3 2 2 2 0 3 4 1 3 4 3 0 4 3 2 0 3 1 0 2 4 0 1 4 3 2 3 0 2 3 2 1 0 3 3 0 1 2 1 1 4 1 0 2 3 2 1 1 3 2 0 3 2 1 3 3 2 1 0 3 0 4 2 2 0 1 1 4 1 1 2 2 4 0 3 3 3 4 2 0 3 1 2 2 3 4 1 0 1 1...
output:
YYYYN
result:
ok "YYYYN"
Test #22:
score: 0
Accepted
time: 10ms
memory: 57484kb
input:
1000 4 1 0 0 1 1 4 1 0 2 1 3 1 0 3 0 1 4 3 4 2 4 0 4 1 3 2 0 3 4 3 3 2 3 1 2 4 0 4 1 2 3 3 4 4 1 2 4 0 3 4 0 0 2 4 1 0 0 1 4 1 2 1 0 1 0 2 4 4 4 1 3 1 4 3 4 2 3 4 2 0 1 3 1 2 2 2 4 0 1 0 2 0 2 4 3 0 1 0 4 1 2 2 2 2 1 4 3 2 3 3 3 1 0 4 1 0 4 0 1 2 4 0 3 3 2 4 0 4 2 3 4 2 1 0 4 2 0 4 3 2 4 3 2 3 4 3 1...
output:
YYYYY
result:
ok "YYYYY"
Test #23:
score: 0
Accepted
time: 7ms
memory: 52940kb
input:
1000 0 2 1 2 3 4 0 2 3 3 0 0 4 4 2 2 2 0 3 2 4 4 3 0 2 1 1 0 0 1 4 2 3 0 1 2 3 2 4 1 0 1 3 2 1 0 4 0 3 0 1 0 4 2 0 1 4 2 0 1 4 2 2 4 1 2 3 0 1 0 4 2 2 2 4 3 4 4 4 4 2 0 1 3 2 3 0 0 2 1 3 2 2 2 1 0 1 2 2 3 3 3 2 1 0 1 4 0 1 0 3 1 0 2 4 3 1 1 2 1 2 2 4 1 3 3 2 1 0 3 2 0 2 1 0 0 2 1 4 0 4 0 1 0 3 2 1 2...
output:
NYNYN
result:
ok "NYNYN"
Test #24:
score: 0
Accepted
time: 11ms
memory: 53948kb
input:
1000 2 4 1 3 0 3 3 2 1 1 1 2 0 3 3 3 4 3 3 2 2 4 0 4 0 2 4 2 0 0 4 4 2 1 4 0 4 0 0 3 2 3 3 1 4 2 3 0 4 0 4 1 2 3 2 3 2 4 0 2 3 4 0 3 0 4 0 1 1 4 3 3 4 4 2 0 0 3 0 2 3 4 3 4 2 3 1 1 1 4 1 1 4 1 3 1 1 4 0 2 4 1 4 1 0 0 3 2 1 4 1 0 0 2 0 2 4 1 0 3 0 2 1 0 1 0 0 0 1 3 0 1 1 4 3 4 3 3 0 2 4 2 0 4 2 1 2 0...
output:
YNYNY
result:
ok "YNYNY"
Test #25:
score: 0
Accepted
time: 18ms
memory: 64788kb
input:
1000 3 3 4 4 3 1 1 3 0 1 1 4 0 2 3 4 3 3 3 1 4 4 4 4 0 0 0 4 2 2 0 3 1 3 2 0 3 1 0 1 0 0 4 3 4 1 1 0 1 1 1 1 3 3 2 1 2 2 1 2 2 2 1 0 0 0 4 1 4 3 1 2 3 4 2 3 1 4 0 4 4 0 1 2 1 3 4 1 3 1 4 2 0 3 4 4 3 3 4 1 1 2 1 1 3 0 3 3 4 3 3 3 1 1 1 1 0 4 1 1 0 0 4 1 0 3 3 2 4 1 4 4 0 3 3 0 3 3 3 0 2 4 3 0 2 3 0 2...
output:
YYYYY
result:
ok "YYYYY"
Test #26:
score: 0
Accepted
time: 7ms
memory: 48864kb
input:
1000 2 0 1 1 2 3 2 3 4 3 0 2 3 3 1 0 0 3 2 4 4 2 4 4 4 0 4 4 4 3 3 4 3 4 4 3 3 4 3 2 4 4 1 0 1 3 0 3 0 4 1 2 1 3 2 0 1 4 2 2 1 0 3 2 0 4 1 2 4 3 2 1 3 1 3 1 3 0 1 1 2 4 2 0 0 1 4 0 1 0 3 0 1 0 0 4 1 3 0 2 1 1 2 3 4 4 4 0 0 2 3 0 4 4 3 0 2 4 4 4 4 2 1 0 3 0 4 0 2 1 3 1 3 3 0 0 4 4 1 3 2 2 4 1 2 1 2 2...
output:
NYNNN
result:
ok "NYNNN"
Test #27:
score: 0
Accepted
time: 8ms
memory: 53224kb
input:
1000 2 0 2 0 3 2 1 3 1 3 1 4 1 4 4 0 3 0 0 1 0 2 0 2 2 2 0 2 0 0 3 4 4 0 2 3 4 3 1 0 0 3 4 1 2 0 2 2 3 0 0 0 3 2 3 1 4 3 1 4 0 0 0 3 4 0 0 0 1 3 0 3 1 3 0 3 3 4 3 0 2 4 3 2 1 2 0 4 2 3 4 1 3 2 2 0 0 1 4 4 1 1 1 0 0 3 4 0 1 4 2 0 2 1 4 1 2 3 1 1 2 1 4 4 0 0 0 0 1 3 4 1 4 3 3 4 2 1 4 2 4 1 4 2 0 2 4 1...
output:
YYNNN
result:
ok "YYNNN"
Test #28:
score: 0
Accepted
time: 8ms
memory: 49780kb
input:
1000 2 0 4 2 4 1 2 2 4 2 3 1 1 4 1 0 4 4 0 0 1 4 4 0 3 0 3 2 3 2 1 3 3 3 3 4 0 4 3 0 2 1 0 3 2 4 0 2 1 3 0 4 3 4 3 4 3 0 4 3 3 3 0 0 4 2 4 1 3 2 1 2 2 4 1 0 4 3 2 3 3 0 2 3 0 0 3 3 0 3 3 4 3 3 2 4 3 0 3 2 3 2 4 4 3 0 4 1 4 1 1 2 3 2 0 2 3 3 3 3 1 4 2 4 3 1 3 0 1 2 3 3 4 2 4 3 0 1 3 3 3 2 3 2 1 0 0 1...
output:
YNNNN
result:
ok "YNNNN"
Test #29:
score: 0
Accepted
time: 9ms
memory: 50344kb
input:
1000 1 0 2 0 4 3 1 1 3 2 4 1 4 0 3 4 2 0 2 3 2 3 0 2 2 1 3 3 1 2 0 1 4 2 1 1 0 3 3 2 2 0 2 3 0 0 1 0 3 3 4 1 3 2 3 3 2 2 4 0 4 3 2 3 1 1 1 4 4 1 0 1 1 3 0 0 4 0 3 3 2 0 0 0 1 4 4 1 4 3 3 3 1 2 2 4 3 3 4 3 0 2 0 4 3 1 1 4 1 0 4 0 0 3 4 4 1 1 2 2 3 2 0 1 4 1 0 3 3 3 4 3 3 3 0 1 2 3 1 2 2 1 4 2 0 3 2 4...
output:
NNYNN
result:
ok "NNYNN"
Test #30:
score: 0
Accepted
time: 10ms
memory: 54824kb
input:
1000 2 0 3 4 0 4 2 3 1 1 1 3 3 2 0 2 2 3 4 1 0 1 1 4 2 1 4 1 1 2 0 0 1 3 4 4 2 1 1 3 3 3 1 4 4 2 1 2 1 2 1 4 4 0 4 1 0 2 0 2 0 3 0 3 4 1 0 2 0 4 2 3 3 0 1 0 3 4 1 1 2 4 1 4 3 2 4 1 4 3 4 3 2 2 0 0 3 4 1 0 0 1 1 1 1 3 0 4 2 2 3 2 4 3 4 4 0 3 0 4 0 3 1 4 4 0 0 3 1 4 0 3 4 4 3 4 0 2 1 3 0 3 0 4 3 4 2 1...
output:
YNNYN
result:
ok "YNNYN"
Test #31:
score: 0
Accepted
time: 9ms
memory: 54048kb
input:
1000 1 3 1 3 1 1 0 1 1 3 0 2 4 4 4 0 3 1 2 1 0 1 2 0 4 2 4 4 0 1 4 1 1 3 0 4 3 4 0 0 3 4 4 0 3 4 3 0 3 2 0 1 3 2 3 0 1 0 2 2 1 2 2 1 4 1 2 0 0 4 1 3 1 0 3 2 2 2 2 4 1 2 2 0 0 1 1 4 0 2 3 1 0 4 3 1 2 2 3 2 0 4 0 2 0 2 2 4 1 2 1 1 1 4 3 0 3 4 0 4 2 1 3 2 0 4 1 2 3 1 0 2 2 0 1 2 2 3 1 0 4 2 0 4 3 3 0 3...
output:
NYNYY
result:
ok "NYNYY"
Test #32:
score: 0
Accepted
time: 8ms
memory: 50452kb
input:
1000 3 1 3 4 2 0 0 1 0 4 2 4 1 4 0 2 0 4 0 4 3 3 1 4 1 0 0 4 1 3 1 1 2 3 0 4 1 1 0 1 0 0 4 4 2 2 1 1 1 0 4 3 4 1 3 2 2 2 4 3 3 0 2 3 0 1 2 0 4 0 2 2 3 4 3 4 2 3 1 0 2 3 1 2 3 4 3 0 3 3 1 4 2 4 0 0 3 1 0 1 2 4 0 4 0 1 4 2 1 1 4 3 0 4 3 2 2 1 4 2 1 4 4 1 2 1 0 3 0 1 4 0 3 4 1 1 2 3 3 2 4 0 0 3 3 2 1 4...
output:
NYNNN
result:
ok "NYNNN"
Test #33:
score: 0
Accepted
time: 9ms
memory: 54724kb
input:
1000 4 4 1 1 0 1 2 3 0 1 0 1 3 4 3 4 1 4 1 3 3 1 0 1 3 4 4 4 1 0 3 1 2 1 2 0 2 3 4 1 1 2 0 3 2 2 0 2 3 4 2 4 3 2 3 2 2 4 4 3 3 2 0 2 1 0 3 1 2 2 4 1 4 1 0 3 3 1 2 0 2 1 1 1 3 2 2 1 1 4 1 2 0 2 3 3 0 1 0 0 2 1 4 4 4 2 0 3 1 4 1 0 3 4 2 2 0 2 2 0 2 2 3 2 3 0 0 1 0 4 3 2 2 3 1 4 2 4 3 1 2 1 3 2 3 3 1 4...
output:
YYNYN
result:
ok "YYNYN"
Test #34:
score: 0
Accepted
time: 17ms
memory: 67344kb
input:
1000 2 2 3 3 3 4 2 2 0 4 3 2 2 4 0 0 4 2 1 3 3 4 3 0 3 0 0 4 0 2 1 3 2 2 2 3 2 2 0 3 4 0 2 4 2 1 3 1 0 2 3 4 0 1 4 0 0 2 3 1 4 1 4 2 2 3 2 4 0 4 2 4 2 0 1 2 3 3 1 0 2 3 1 1 3 4 1 1 4 3 1 3 2 4 4 3 2 1 2 3 2 4 4 0 3 3 1 3 4 3 0 3 3 1 0 4 3 2 3 4 4 1 2 3 3 1 0 4 2 2 0 1 1 4 1 1 3 4 4 0 3 2 4 1 3 0 2 3...
output:
YYYYY
result:
ok "YYYYY"
Test #35:
score: 0
Accepted
time: 8ms
memory: 59204kb
input:
1000 1 3 4 1 4 3 3 4 2 2 4 2 2 1 1 4 0 1 1 0 0 4 0 0 2 2 1 2 1 2 2 0 3 2 1 1 4 4 3 1 0 4 0 4 2 3 2 0 3 3 3 3 1 4 4 1 2 2 3 3 1 2 4 2 3 4 1 4 1 3 4 1 0 3 0 1 1 2 3 2 1 3 2 3 4 0 1 2 0 0 3 3 4 3 0 0 2 3 1 2 2 3 0 1 4 1 4 2 3 2 3 3 1 3 3 2 3 1 2 1 0 3 3 4 1 4 1 4 1 0 2 4 1 2 4 0 1 2 4 0 3 2 0 2 0 2 3 1...
output:
YYYYN
result:
ok "YYYYN"
Test #36:
score: 0
Accepted
time: 10ms
memory: 57344kb
input:
1000 4 1 1 4 4 1 0 2 0 0 2 1 3 0 2 0 4 1 3 2 3 0 0 2 2 3 0 0 3 0 2 1 1 3 3 2 4 1 1 3 3 2 1 3 0 2 4 4 2 2 3 3 0 1 0 4 3 1 3 3 4 4 0 4 4 2 1 0 4 0 2 0 2 0 0 4 4 0 4 0 4 2 3 0 0 3 1 3 3 1 1 2 1 0 2 4 0 4 2 3 2 1 2 0 0 0 0 0 1 2 4 2 3 1 3 2 0 1 0 4 1 4 0 1 3 3 1 1 1 1 1 4 2 0 0 0 1 2 3 1 0 3 0 4 1 4 0 1...
output:
YYYYN
result:
ok "YYYYN"
Test #37:
score: 0
Accepted
time: 8ms
memory: 48976kb
input:
1000 4 1 4 0 1 3 1 0 0 1 2 4 2 0 0 3 2 1 4 2 2 2 0 0 1 0 1 4 1 2 4 2 4 1 1 3 3 4 1 3 3 4 2 1 0 2 1 1 2 0 0 1 0 0 4 3 2 4 1 1 3 2 0 2 4 3 4 2 3 3 2 4 4 1 1 4 0 1 3 1 1 3 1 4 2 3 0 3 0 1 0 3 1 1 4 1 2 4 1 1 0 0 3 4 3 2 3 3 2 0 2 2 3 0 4 3 1 4 3 1 0 2 0 2 3 0 0 4 2 4 4 4 0 4 4 1 1 3 0 3 2 0 4 2 0 3 1 3...
output:
NNYNN
result:
ok "NNYNN"
Test #38:
score: 0
Accepted
time: 2ms
memory: 35016kb
input:
571 0 0 3 4 0 3 0 0 1 4 1 3 1 1 0 3 3 0 0 1 1 0 0 1 3 1 0 0 0 1 0 0 1 2 0 1 3 4 3 0 0 0 2 0 4 2 4 1 0 0 0 3 0 4 3 1 1 1 3 4 2 2 1 2 2 4 0 2 4 0 1 0 0 3 3 3 0 0 1 2 4 4 3 1 1 0 1 4 0 2 4 2 4 0 3 4 2 4 2 0 2 2 3 3 1 2 4 3 1 4 0 0 2 2 4 3 4 0 4 4 4 2 2 4 4 0 3 4 1 0 1 1 2 4 2 0 3 3 1 3 1 1 1 2 2 1 1 0 ...
output:
NYNNN
result:
ok "NYNNN"
Test #39:
score: 0
Accepted
time: 1ms
memory: 30616kb
input:
415 1 0 4 0 1 2 3 4 1 3 4 1 3 0 0 4 4 2 2 1 4 3 0 2 2 1 2 2 1 2 3 3 1 2 1 1 0 2 3 3 1 3 2 4 1 2 2 4 4 2 0 1 1 1 1 0 1 1 2 3 4 4 2 1 2 4 2 4 0 3 2 0 1 4 0 4 1 0 1 1 4 3 2 0 3 0 0 1 4 0 3 2 2 2 1 2 0 2 2 4 1 0 3 1 0 0 2 4 2 0 4 3 0 3 1 0 2 4 2 2 1 3 3 2 1 4 0 2 4 3 3 2 3 2 1 2 2 1 4 0 2 0 0 2 1 4 3 2 ...
output:
YNYYN
result:
ok "YNYYN"
Test #40:
score: 0
Accepted
time: 0ms
memory: 26184kb
input:
260 2 3 2 1 1 1 0 3 2 4 1 0 4 3 4 0 1 3 4 4 0 2 1 0 1 0 2 1 2 4 2 0 3 0 2 4 1 3 2 1 2 1 0 1 2 0 3 2 0 3 3 2 0 2 2 1 1 0 0 0 1 3 3 1 0 3 1 2 4 2 3 1 3 4 1 0 2 2 2 1 1 2 1 4 1 0 4 2 4 0 0 2 2 0 3 4 0 2 0 3 2 1 1 1 0 4 3 1 4 0 4 4 0 0 3 4 2 1 1 3 0 3 0 4 4 4 0 3 3 4 1 1 4 2 4 1 1 0 2 0 0 1 2 1 1 3 4 0 ...
output:
YYYYN
result:
ok "YYYYN"
Test #41:
score: 0
Accepted
time: 0ms
memory: 24004kb
input:
104 1 3 0 3 0 0 4 3 4 1 4 4 3 1 3 1 3 3 0 2 1 2 1 1 3 4 0 3 2 1 0 2 1 4 4 4 3 0 2 4 0 4 0 1 0 2 0 0 0 1 1 0 2 4 3 1 2 1 4 3 4 3 3 2 0 0 0 4 2 2 4 3 4 0 4 2 3 2 3 3 3 4 1 4 4 1 3 2 3 4 0 2 1 4 0 4 0 2 3 0 2 1 2 0 4 1 3 1 3 3 2 1 2 4 2 2 1 4 1 4 1 1 3 0 4 0 4 4 1 2 3 1 0 4 3 0 4 2 2 2 1 3 0 2 3 2 3 4 ...
output:
YNYNN
result:
ok "YNYNN"
Test #42:
score: 0
Accepted
time: 0ms
memory: 22088kb
input:
52 2 4 2 0 3 4 1 3 0 3 4 4 1 3 2 0 0 3 1 0 1 0 3 2 3 4 4 2 1 3 3 1 3 2 2 2 1 1 3 3 3 3 2 3 1 2 1 2 1 0 3 2 4 1 4 2 0 1 3 0 2 0 1 1 3 0 4 2 2 0 3 2 3 2 0 4 0 1 1 4 3 0 0 3 0 4 4 4 3 3 0 0 0 0 4 0 3 4 3 4 3 2 0 4 4 1 4 2 0 1 3 0 2 0 1 1 3 0 4 2 2 0 3 2 3 2 0 4 0 1 1 4 3 0 0 3 0 4 4 4 3 3 0 0 0 0 4 0 3...
output:
NYYYY
result:
ok "NYYYY"
Test #43:
score: 0
Accepted
time: 9ms
memory: 58004kb
input:
897 4 4 1 4 2 0 3 0 3 4 4 4 3 3 1 1 4 0 1 3 3 2 3 0 4 0 1 3 4 2 0 0 3 4 1 0 2 3 3 1 4 1 1 0 2 4 4 3 2 0 1 2 0 0 0 0 0 3 4 1 3 0 0 2 0 2 2 4 1 2 1 2 0 4 2 1 2 1 0 3 1 1 1 4 3 2 3 3 2 1 0 1 4 1 4 2 0 4 4 1 0 0 1 0 4 1 2 1 1 2 2 3 2 2 0 4 1 3 0 1 2 1 1 3 1 1 2 3 3 4 0 0 0 0 4 1 1 0 1 3 1 0 4 3 3 2 0 1 ...
output:
YYNNY
result:
ok "YYNNY"
Test #44:
score: 0
Accepted
time: 1ms
memory: 30436kb
input:
275 0 4 4 2 2 3 2 4 3 1 0 0 2 4 3 3 2 3 0 4 2 1 4 3 1 0 4 0 1 1 2 0 0 2 4 1 3 2 2 4 4 1 0 0 0 1 4 3 1 4 2 4 3 0 0 4 4 1 2 3 1 0 1 2 1 3 1 1 1 3 3 0 3 0 0 4 2 3 1 2 1 0 4 2 0 2 4 3 2 2 1 4 4 2 4 3 0 4 2 4 0 4 0 0 3 0 3 0 2 2 1 3 4 1 4 0 2 4 4 1 0 3 0 2 1 3 4 4 4 4 1 3 2 4 2 1 2 1 3 3 2 1 3 2 2 2 0 2 ...
output:
YYYYN
result:
ok "YYYYN"
Test #45:
score: 0
Accepted
time: 0ms
memory: 22088kb
input:
120 2 0 1 4 0 3 4 4 4 4 0 0 3 3 4 4 0 3 1 0 4 0 1 3 3 4 3 3 4 4 2 2 2 3 2 4 2 3 3 4 2 3 1 1 4 4 0 4 3 3 4 4 1 4 3 1 3 4 0 0 4 3 4 4 2 2 1 3 0 3 0 2 1 2 0 1 0 0 0 0 3 1 4 3 3 4 1 1 3 2 0 3 4 2 2 2 0 1 1 2 2 0 3 0 1 0 1 3 0 0 2 4 1 4 2 4 0 0 3 1 2 0 1 4 0 3 4 4 4 4 0 0 3 3 4 4 0 3 1 0 4 0 1 3 3 4 3 3 ...
output:
NYNNY
result:
ok "NYNNY"
Test #46:
score: 0
Accepted
time: 0ms
memory: 28228kb
input:
260 3 2 0 2 2 3 1 1 2 1 2 0 2 0 0 3 4 0 4 0 2 2 3 1 2 4 3 2 2 2 2 1 2 1 3 0 3 4 1 3 1 4 0 3 4 2 0 0 3 3 3 1 1 0 4 4 2 1 3 1 4 4 2 1 1 3 0 1 4 4 3 3 1 3 0 4 2 2 1 1 1 3 1 3 3 3 0 0 0 3 3 2 1 1 2 4 2 3 0 4 3 2 1 1 4 4 2 0 1 2 1 1 0 3 3 3 2 1 4 2 2 1 2 0 3 2 0 1 2 2 4 4 4 2 3 3 3 1 1 2 4 2 1 0 1 2 3 0 ...
output:
NYYNN
result:
ok "NYYNN"
Test #47:
score: 0
Accepted
time: 4ms
memory: 37172kb
input:
616 4 0 1 0 0 3 1 2 0 3 2 4 2 0 2 0 1 1 0 4 0 0 0 3 0 3 3 2 1 0 2 1 3 4 2 3 2 2 0 1 2 4 0 1 4 2 2 2 1 2 3 0 4 4 4 4 0 1 2 1 4 0 1 2 2 3 0 4 3 4 0 4 0 3 4 1 0 0 3 1 4 3 2 4 1 1 4 0 0 3 0 2 1 0 1 1 0 3 2 3 0 2 3 0 3 3 3 4 0 4 4 2 2 0 1 2 0 3 3 0 1 4 0 2 2 1 3 1 1 3 3 3 2 1 3 2 2 3 4 3 1 1 0 0 2 0 2 3 ...
output:
NNYNN
result:
ok "NNYNN"
Test #48:
score: 0
Accepted
time: 1ms
memory: 36420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:
YYNNY
result:
ok "YYNNY"
Test #51:
score: 0
Accepted
time: 3ms
memory: 39028kb
input:
586 0 3 1 0 1 0 3 1 0 3 3 0 4 3 1 0 1 3 2 0 3 3 1 1 2 0 4 4 1 4 1 1 3 2 0 0 0 0 3 4 0 0 2 0 3 3 1 0 2 2 2 1 1 0 2 0 1 2 2 4 2 2 2 4 4 1 3 4 2 2 1 0 4 1 1 4 4 3 0 1 4 1 4 1 2 2 3 1 0 2 4 3 0 1 3 3 0 2 3 1 4 0 4 3 4 3 1 3 1 2 1 2 4 2 4 4 0 4 4 1 0 4 2 0 0 3 0 0 0 2 0 1 2 1 1 2 3 3 1 4 4 1 4 4 0 2 2 0 ...
output:
YYNNN
result:
ok "YYNNN"
Test #52:
score: 0
Accepted
time: 0ms
memory: 22088kb
input:
134 0 2 3 1 2 0 2 1 0 0 1 3 2 3 4 0 3 2 1 0 2 4 2 0 3 3 3 3 4 2 4 4 4 3 2 3 0 0 0 2 2 4 4 0 3 4 1 1 1 0 3 3 0 3 3 1 0 4 0 2 1 2 2 3 1 0 1 0 0 1 4 1 2 1 4 0 0 4 1 3 2 2 0 3 0 3 1 0 4 0 0 4 0 3 0 3 2 1 4 3 3 0 0 2 0 2 1 2 4 4 2 3 1 4 3 2 3 4 4 1 4 2 4 4 2 4 3 1 3 2 2 4 0 1 0 2 3 1 2 0 2 1 0 0 1 3 2 3 ...
output:
YNNYN
result:
ok "YNNYN"
Test #53:
score: 0
Accepted
time: 11ms
memory: 54732kb
input:
1000 3 4 1 2 4 1 1 3 4 1 1 3 4 3 2 0 2 1 3 2 4 3 0 1 0 3 1 1 0 2 1 1 0 0 2 2 2 0 0 0 0 4 3 1 0 4 0 2 2 2 0 0 3 0 4 1 2 1 2 1 4 1 1 1 0 3 1 3 4 2 0 1 1 0 3 4 2 3 2 2 1 3 4 2 3 3 3 4 1 1 1 4 2 4 1 0 0 0 0 0 1 3 4 2 3 2 4 0 1 2 1 4 3 1 4 4 1 3 0 0 1 0 3 3 0 4 0 4 2 4 3 4 2 2 4 2 4 2 2 1 3 2 3 3 4 1 0 0...
output:
NYYNN
result:
ok "NYYNN"
Test #54:
score: 0
Accepted
time: 7ms
memory: 50456kb
input:
1000 4 1 2 1 2 4 0 2 4 1 2 0 2 2 3 2 4 0 1 0 4 4 0 4 2 1 1 0 3 3 4 2 1 1 3 4 4 0 0 1 2 1 0 1 2 0 2 2 1 2 2 4 4 2 3 3 3 2 1 2 3 3 0 1 0 3 3 4 3 0 0 1 0 3 1 3 3 1 1 3 4 2 2 0 1 4 1 2 3 4 0 2 2 2 3 2 2 3 4 0 4 1 4 1 1 4 3 3 0 4 0 4 1 4 3 3 4 4 2 4 1 4 0 3 1 0 4 2 3 1 4 0 4 1 4 0 4 2 1 4 2 2 1 1 4 1 2 2...
output:
NNYNN
result:
ok "NNYNN"
Test #55:
score: 0
Accepted
time: 7ms
memory: 53732kb
input:
1000 3 1 1 4 2 1 0 2 0 0 2 2 0 1 0 4 1 1 1 2 0 4 1 1 0 0 1 2 3 2 3 1 0 0 3 2 0 3 2 4 0 0 4 1 1 1 1 4 3 2 0 2 4 4 4 1 4 0 4 3 4 1 3 4 1 3 0 2 0 0 2 2 0 2 1 1 2 4 2 1 4 1 3 1 3 3 1 4 1 2 1 2 4 4 0 4 1 1 0 2 4 1 1 3 1 4 0 3 3 4 1 4 3 2 1 3 2 3 2 3 2 4 0 2 0 1 1 1 4 0 0 0 3 2 2 2 1 4 3 3 2 1 1 2 0 3 0 2...
output:
NYYNN
result:
ok "NYYNN"
Test #56:
score: 0
Accepted
time: 8ms
memory: 54752kb
input:
1000 2 1 2 3 3 2 0 3 4 4 1 2 1 2 2 0 1 4 1 2 2 1 3 3 0 4 1 3 3 3 4 4 0 4 2 1 2 4 4 4 2 0 2 1 4 4 1 0 0 4 3 0 1 3 2 0 1 2 2 1 1 3 4 1 0 0 0 1 2 4 4 0 4 1 2 2 2 3 1 2 0 0 1 2 0 3 2 4 3 4 3 3 2 4 1 0 2 4 1 0 1 1 2 1 0 4 4 2 3 0 1 4 2 0 1 0 2 1 4 0 1 0 4 3 4 4 4 1 4 0 2 0 0 0 1 0 4 3 2 4 1 1 2 4 3 3 2 2...
output:
YYNNY
result:
ok "YYNNY"
Test #57:
score: 0
Accepted
time: 9ms
memory: 58040kb
input:
1000 2 0 1 2 3 1 3 4 3 1 4 1 1 3 3 2 1 1 2 3 2 1 4 1 4 3 1 4 3 2 2 0 0 4 1 3 0 3 0 1 2 0 1 1 3 2 0 3 2 1 0 4 0 0 2 4 2 4 1 3 2 4 4 4 1 2 2 3 1 3 0 1 1 3 3 1 0 1 1 3 2 1 3 3 2 1 3 3 4 1 1 1 0 2 4 2 0 1 2 1 1 0 2 4 0 3 3 4 3 1 2 4 3 4 1 0 1 0 4 0 2 0 2 0 4 4 4 0 2 4 2 4 0 0 0 3 2 0 4 2 4 2 4 0 2 3 0 0...
output:
YNYYN
result:
ok "YNYYN"
Test #58:
score: 0
Accepted
time: 11ms
memory: 58684kb
input:
1000 0 1 2 3 0 2 3 1 1 2 1 0 3 1 4 2 0 4 0 1 4 4 2 3 4 0 3 3 0 2 0 3 2 1 4 0 2 3 1 4 0 0 0 2 0 0 1 2 0 3 0 3 1 4 0 1 0 0 0 1 3 3 3 4 0 0 2 2 4 4 1 2 4 4 3 0 1 1 0 3 4 0 0 4 4 3 0 3 4 3 3 3 4 3 1 3 1 4 1 4 3 1 4 2 3 0 3 4 2 2 4 0 1 2 1 2 2 2 3 2 1 0 4 3 1 4 1 2 2 3 1 0 3 2 3 1 0 3 0 2 3 3 1 3 2 3 4 0...
output:
YYNNY
result:
ok "YYNNY"
Test #59:
score: 0
Accepted
time: 9ms
memory: 54368kb
input:
1000 1 4 4 4 3 4 0 0 4 0 4 3 4 1 0 2 3 4 2 4 3 1 1 0 0 0 2 4 1 1 4 3 1 4 1 1 1 4 4 3 4 3 1 1 1 0 1 4 0 1 2 4 4 0 0 1 0 1 4 0 3 3 1 3 2 3 2 0 3 0 2 1 3 4 2 2 3 0 1 0 3 3 1 3 4 1 0 3 3 4 2 3 3 3 2 3 3 4 1 3 1 3 3 3 1 0 4 1 4 2 3 4 2 0 3 2 4 2 3 4 1 4 1 4 0 3 2 4 2 4 3 4 2 2 0 4 1 4 0 1 3 0 0 2 1 4 3 0...
output:
NNYNY
result:
ok "NNYNY"
Test #60:
score: 0
Accepted
time: 8ms
memory: 53468kb
input:
1000 2 4 1 2 1 0 2 0 2 3 2 4 2 1 4 2 1 2 1 2 2 3 4 1 2 2 4 3 4 1 4 1 2 1 2 0 0 4 4 3 0 4 1 2 1 4 3 3 4 4 2 3 1 0 3 1 4 2 2 3 1 1 3 4 1 4 1 4 0 1 3 4 1 0 2 4 4 4 3 1 1 1 3 4 0 3 2 3 4 4 0 4 3 0 0 1 4 4 4 0 4 1 0 4 0 2 3 2 3 4 3 4 2 3 0 3 4 4 4 2 0 4 4 4 3 3 4 4 2 1 0 3 4 4 4 2 0 3 0 0 1 1 3 1 1 4 3 0...
output:
YNYYN
result:
ok "YNYYN"
Test #61:
score: 0
Accepted
time: 8ms
memory: 50368kb
input:
1000 2 1 2 3 1 2 3 4 2 0 1 3 4 0 1 4 3 1 4 1 4 0 3 2 3 2 2 2 2 0 1 1 0 1 1 1 3 0 1 3 3 1 2 4 2 2 4 3 2 2 1 3 4 4 2 1 3 2 1 4 4 0 4 0 0 1 2 4 4 1 3 2 2 4 3 1 0 1 3 0 4 0 3 3 1 1 2 4 1 3 3 0 0 0 4 4 0 2 2 0 2 2 0 3 2 3 3 3 3 1 4 4 2 1 1 1 0 2 2 1 4 0 4 4 0 1 1 0 3 0 4 2 4 3 4 3 4 3 4 1 0 3 2 4 1 2 1 4...
output:
NNYNN
result:
ok "NNYNN"
Test #62:
score: 0
Accepted
time: 12ms
memory: 61836kb
input:
1000 4 3 4 4 0 3 4 1 3 2 4 1 4 4 1 0 2 2 0 2 3 4 1 1 4 4 0 2 4 1 3 2 3 4 0 3 1 2 3 3 1 2 3 1 3 1 0 3 2 3 3 3 4 4 3 3 3 0 4 3 2 4 0 1 0 4 1 0 1 3 0 1 0 2 3 2 2 1 2 1 1 2 1 0 0 0 4 1 4 2 2 2 2 2 2 2 4 3 1 3 4 3 3 3 2 0 0 4 1 0 3 4 3 4 2 3 3 4 4 4 4 3 4 4 0 2 0 1 2 0 2 0 1 3 4 2 4 2 1 4 3 3 1 3 0 3 2 2...
output:
YYYYY
result:
ok "YYYYY"
Test #63:
score: 0
Accepted
time: 8ms
memory: 53252kb
input:
1000 2 4 4 1 3 1 0 0 3 2 1 2 4 2 3 0 4 1 4 2 0 2 0 0 3 3 1 2 0 3 3 1 1 0 0 4 0 3 3 3 3 0 3 3 3 1 0 0 2 1 2 3 2 4 2 0 0 0 3 1 0 2 0 3 3 1 1 0 4 1 4 0 4 2 3 3 2 2 3 2 4 2 0 4 3 3 1 2 3 1 0 0 2 1 3 0 1 2 0 3 4 0 0 4 0 4 1 1 2 2 1 0 3 2 0 3 0 4 3 0 3 4 3 0 1 4 0 2 2 3 0 2 4 0 4 3 4 2 1 4 2 0 4 4 4 2 3 0...
output:
YNNYY
result:
ok "YNNYY"
Test #64:
score: 0
Accepted
time: 2ms
memory: 28104kb
input:
351 0 0 4 0 1 0 1 0 3 3 0 3 2 1 2 3 4 3 0 0 3 3 2 0 3 0 4 0 4 0 0 4 3 4 3 3 0 0 2 2 3 0 0 0 1 3 3 1 2 2 0 3 2 2 3 2 2 3 2 3 3 3 0 4 0 4 3 3 4 3 4 0 4 3 3 0 2 1 1 2 4 4 1 1 3 3 4 1 1 2 2 4 1 2 4 1 1 1 4 1 4 4 3 4 3 3 1 1 2 3 3 3 0 4 0 0 4 0 0 3 1 1 3 0 1 1 4 1 0 2 3 3 2 3 2 3 1 4 0 3 4 4 3 3 2 0 2 0 ...
output:
NNYNN
result:
ok "NNYNN"
Test #65:
score: 0
Accepted
time: 2ms
memory: 36420kb
input:
491 1 3 2 1 3 0 1 4 0 0 4 1 3 4 2 4 0 2 2 2 4 3 3 1 0 4 2 1 4 2 0 1 1 4 4 0 4 4 3 2 0 4 3 1 4 0 3 4 2 0 0 3 3 0 2 2 3 4 4 4 1 3 1 3 0 4 4 4 1 2 4 0 1 3 1 0 2 3 1 2 1 3 2 1 2 0 3 2 1 0 0 3 0 1 2 0 1 0 0 2 4 3 4 3 0 2 0 3 2 0 3 3 0 1 1 3 0 3 4 1 4 0 1 1 4 1 3 4 3 0 3 3 0 4 3 1 1 4 2 0 0 0 1 2 3 0 0 2 ...
output:
YYNNN
result:
ok "YYNNN"
Test #66:
score: 0
Accepted
time: 1ms
memory: 28444kb
input:
335 3 1 0 1 3 0 0 1 3 4 1 2 0 3 2 2 1 1 0 1 3 4 1 0 4 4 3 3 0 2 0 3 0 3 4 0 4 4 4 3 0 3 3 4 1 4 4 4 0 1 2 0 0 2 1 4 0 0 0 2 2 0 4 2 0 0 4 0 1 4 3 4 1 2 3 0 3 1 0 3 2 3 4 1 2 0 1 2 3 2 4 3 2 3 3 0 1 2 1 3 2 0 4 4 0 3 3 0 3 0 2 0 0 0 4 2 0 1 1 4 1 1 1 3 0 0 3 2 3 3 3 4 0 1 0 0 2 3 1 2 0 2 0 3 4 1 2 3 ...
output:
NYYYN
result:
ok "NYYYN"
Test #67:
score: 0
Accepted
time: 2ms
memory: 30284kb
input:
180 2 1 2 0 0 4 3 4 2 2 4 1 1 0 4 2 3 3 4 3 1 2 1 4 0 3 2 0 4 3 2 4 4 4 0 1 1 3 1 1 0 1 2 2 4 4 4 2 4 4 2 0 1 4 4 2 0 0 1 1 4 0 0 1 0 1 1 4 0 2 4 4 3 1 0 0 1 1 0 0 1 2 2 0 2 2 3 1 2 0 3 1 2 4 4 4 4 2 2 3 0 3 1 2 4 1 4 4 0 0 3 4 0 3 1 4 2 1 2 4 2 4 2 2 2 4 1 0 1 2 0 1 1 3 1 2 4 3 3 4 4 3 3 0 3 4 2 1 ...
output:
YYYNY
result:
ok "YYYNY"
Test #68:
score: 0
Accepted
time: 0ms
memory: 13896kb
input:
24 0 3 0 1 3 0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"
Test #71:
score: 0
Accepted
time: 4ms
memory: 52996kb
input:
661 3 4 4 0 1 4 4 4 0 1 4 1 0 3 1 2 4 2 3 1 0 4 0 4 0 1 0 2 0 0 1 2 2 0 1 1 4 4 2 2 2 3 3 1 2 1 3 0 3 2 0 3 1 3 0 2 1 0 4 0 1 3 1 0 4 0 2 1 1 2 4 2 1 2 3 1 4 3 1 3 0 1 4 1 1 0 3 3 0 1 1 0 0 1 3 4 2 2 4 1 0 0 0 3 4 4 4 2 4 4 3 2 1 0 1 4 2 4 2 0 0 1 4 3 0 3 0 1 2 4 3 1 1 4 4 0 3 1 2 3 2 2 0 2 2 1 0 2 ...
output:
NYNYY
result:
ok "NYNYY"
Test #72:
score: 0
Accepted
time: 2ms
memory: 32836kb
input:
506 0 1 4 4 1 2 1 3 1 1 2 4 4 0 3 0 0 0 0 3 3 1 0 0 0 2 2 3 2 1 2 0 2 0 2 4 1 0 3 2 3 3 1 0 4 2 0 3 4 4 3 3 3 2 3 2 0 2 3 4 3 2 1 0 4 2 0 1 4 1 3 2 2 3 0 1 3 3 1 1 0 0 4 2 3 1 0 0 3 4 0 1 3 4 0 3 4 1 3 2 4 4 0 1 1 4 2 4 1 4 4 1 2 2 0 2 4 4 4 4 2 3 0 2 1 2 3 0 4 2 4 3 3 2 0 2 1 1 4 1 1 3 2 0 0 3 2 4 ...
output:
NYNNN
result:
ok "NYNNN"
Test #73:
score: 0
Accepted
time: 0ms
memory: 34248kb
input:
350 2 2 3 2 0 1 3 3 3 3 2 2 2 3 1 3 2 0 1 4 0 2 4 1 2 1 3 1 4 3 1 2 1 3 0 1 0 1 1 1 4 3 3 1 3 4 1 0 3 3 0 1 1 0 1 2 0 4 2 4 2 3 3 1 1 0 3 0 2 1 1 3 4 4 2 3 1 4 0 4 3 2 4 3 4 4 1 0 3 3 2 4 3 2 3 4 4 2 1 3 1 4 2 1 2 4 2 1 1 2 4 1 4 0 3 4 2 0 1 1 3 1 3 2 1 3 2 2 2 4 0 2 0 2 3 1 1 0 2 1 4 4 1 2 1 2 3 2 ...
output:
YYYYY
result:
ok "YYYYY"
Test #74:
score: 0
Accepted
time: 5ms
memory: 47336kb
input:
728 0 0 2 3 2 2 1 3 0 0 4 2 1 1 1 0 3 0 1 0 4 0 3 0 3 0 3 0 3 4 2 4 0 2 4 4 3 0 4 1 4 1 1 3 3 1 1 1 4 4 3 3 0 4 2 0 1 1 0 2 2 4 2 2 4 1 2 3 4 0 1 2 4 4 4 2 3 3 2 0 4 2 2 2 2 3 3 4 1 2 1 0 0 4 3 1 1 1 2 3 2 0 3 0 3 0 2 2 4 2 0 2 2 1 2 1 4 2 4 0 1 1 0 4 3 0 0 3 4 2 2 2 2 4 1 3 2 1 1 2 1 1 2 2 2 1 1 2 ...
output:
NYYYN
result:
ok "NYYYN"
Test #75:
score: 0
Accepted
time: 1ms
memory: 32328kb
input:
381 2 0 4 4 4 0 4 4 2 3 3 2 1 2 1 3 0 2 0 3 3 3 0 1 1 1 3 1 3 2 0 1 4 2 0 2 1 4 3 4 2 1 1 1 3 2 3 3 2 3 0 0 3 2 3 1 4 2 4 4 0 2 3 2 4 4 3 0 3 0 3 4 4 0 0 3 4 0 4 4 2 0 4 4 0 0 4 0 2 2 3 3 0 0 0 0 2 1 1 1 4 1 0 2 2 4 4 0 3 0 1 2 4 1 1 4 3 2 0 4 0 4 2 2 1 1 0 3 4 2 1 2 0 4 1 2 3 3 0 3 4 1 1 1 2 1 0 0 ...
output:
NNNYY
result:
ok "NNNYY"
Test #76:
score: 0
Accepted
time: 9ms
memory: 49972kb
input:
1000 0 4 4 4 1 2 2 2 2 0 3 2 0 3 0 2 2 4 0 4 1 1 1 1 4 2 0 3 1 0 4 2 4 1 2 0 2 1 4 1 3 0 2 4 4 0 2 0 0 0 2 1 4 2 3 2 2 2 0 2 4 0 1 3 4 4 0 0 0 2 2 1 3 0 4 2 1 4 2 3 2 4 3 1 2 1 2 4 4 4 4 2 2 0 2 4 4 0 4 2 1 2 1 2 1 0 2 2 3 2 3 1 2 1 2 3 2 2 1 2 2 1 2 1 4 0 3 1 3 0 4 3 3 0 4 2 1 4 0 2 3 3 1 3 2 4 3 0...
output:
NNYNN
result:
ok "NNYNN"
Test #77:
score: 0
Accepted
time: 8ms
memory: 49664kb
input:
1000 1 2 0 3 3 3 3 0 2 1 4 3 3 2 3 3 4 3 4 3 3 2 3 1 0 2 2 2 2 4 1 0 4 3 1 0 4 1 3 0 4 2 1 4 4 4 1 0 3 2 1 0 0 2 3 0 1 2 3 0 2 3 2 3 3 4 4 4 3 0 1 2 1 2 4 3 1 0 0 0 3 1 2 3 1 2 3 4 2 3 1 4 3 4 4 3 4 0 0 0 0 3 0 4 2 0 1 1 3 2 2 1 0 3 3 2 2 4 4 0 0 3 2 1 1 4 4 2 4 0 1 1 4 3 0 2 4 4 2 2 2 4 4 1 1 1 0 0...
output:
NYNNN
result:
ok "NYNNN"
Test #78:
score: 0
Accepted
time: 7ms
memory: 49372kb
input:
1000 2 4 3 0 0 0 0 2 3 4 4 1 4 2 3 0 3 1 4 2 2 0 3 0 3 2 2 3 1 1 3 0 4 2 4 1 0 0 0 3 3 4 3 3 0 3 0 1 4 0 3 1 0 4 3 2 0 3 4 1 2 4 3 0 4 3 0 1 1 3 4 2 2 0 3 1 4 2 2 2 4 3 1 1 1 0 4 0 1 4 0 2 1 2 1 1 2 0 1 0 3 0 3 2 3 4 0 3 2 2 1 0 1 2 2 2 4 2 2 3 1 1 1 0 1 3 4 0 3 4 1 4 2 1 1 2 4 0 0 4 0 1 2 0 1 3 1 1...
output:
NYNNN
result:
ok "NYNNN"
Test #79:
score: 0
Accepted
time: 10ms
memory: 54784kb
input:
1000 1 0 4 2 4 2 1 1 2 2 1 0 1 2 0 1 4 1 3 0 2 4 2 1 3 2 4 3 4 4 4 2 2 4 3 3 4 1 2 2 1 1 3 2 2 2 3 2 2 4 3 1 0 3 3 0 0 0 2 4 4 3 1 3 3 1 1 1 0 3 3 0 3 4 3 3 0 3 2 0 2 4 0 0 0 3 1 1 2 2 3 0 3 3 3 0 4 0 0 4 2 3 0 1 1 4 0 4 3 0 0 2 2 0 3 0 1 2 1 1 0 4 1 0 3 4 4 2 4 2 4 0 3 0 0 4 4 0 3 2 0 2 2 0 0 2 0 3...
output:
YYNNY
result:
ok "YYNNY"
Test #80:
score: 0
Accepted
time: 8ms
memory: 54244kb
input:
1000 4 4 3 4 2 0 3 3 1 0 0 4 2 3 1 3 0 3 0 4 2 2 1 0 2 0 3 4 1 1 1 2 3 3 3 0 4 3 4 3 1 4 4 2 3 3 3 4 4 1 0 2 4 4 1 1 0 4 2 0 4 2 4 0 0 2 3 2 4 2 2 0 1 2 1 3 3 4 2 2 1 1 0 3 0 2 1 0 1 3 3 2 1 0 4 4 2 0 1 0 2 2 0 2 2 3 1 2 0 0 2 4 3 3 4 0 3 4 0 1 1 1 3 4 3 2 2 0 2 4 3 4 2 0 2 1 0 0 0 0 4 3 1 2 0 4 2 2...
output:
YNYYN
result:
ok "YNYYN"
Test #81:
score: 0
Accepted
time: 10ms
memory: 53660kb
input:
1000 4 4 4 4 4 1 4 2 3 1 3 0 1 4 2 3 2 1 3 3 3 4 4 4 1 3 3 2 3 2 0 0 0 2 3 0 1 4 0 0 3 0 4 4 0 3 4 4 1 3 3 1 1 3 4 1 2 2 4 3 1 2 3 0 4 4 0 2 1 3 0 4 0 2 4 0 3 1 1 2 1 3 3 0 2 1 3 3 4 2 3 3 1 4 1 1 3 4 4 2 2 2 2 3 3 0 0 1 2 1 0 1 0 0 2 1 3 3 2 3 4 3 0 0 4 2 4 0 1 0 3 4 2 2 1 4 3 4 1 3 2 4 2 4 4 2 2 3...
output:
YNYYN
result:
ok "YNYYN"
Test #82:
score: 0
Accepted
time: 8ms
memory: 53556kb
input:
1000 0 0 0 0 2 2 0 3 3 1 1 4 3 3 2 3 1 1 3 4 1 1 3 2 2 0 1 2 1 0 2 0 3 0 3 1 0 3 2 4 0 1 0 1 0 1 3 4 2 1 1 0 3 3 3 3 2 3 4 1 0 4 2 4 4 2 1 3 0 3 2 2 0 2 4 2 1 2 4 0 2 4 1 2 1 3 4 4 0 2 2 0 2 0 2 1 0 4 1 2 0 3 4 2 3 0 0 4 4 3 1 1 0 3 3 0 1 1 2 4 3 4 0 1 3 1 0 2 0 0 1 3 0 1 1 0 3 4 4 1 4 0 2 3 1 3 0 2...
output:
NYYNY
result:
ok "NYYNY"
Test #83:
score: 0
Accepted
time: 11ms
memory: 61476kb
input:
1000 4 4 4 3 4 4 2 4 1 3 4 2 4 4 1 1 4 1 4 4 1 0 2 4 0 1 0 3 2 2 0 4 1 3 4 4 1 0 3 0 4 0 1 0 3 2 2 2 1 4 1 2 0 3 4 4 2 1 3 2 4 3 4 1 4 1 3 4 3 1 3 2 3 4 0 2 3 3 0 4 1 1 3 2 0 1 1 0 3 2 1 0 1 2 2 4 2 4 1 2 3 3 3 2 2 3 3 0 0 4 3 1 1 2 4 2 3 4 1 4 3 0 0 3 2 2 3 0 2 1 0 4 2 2 2 0 4 0 2 4 4 3 1 2 3 3 2 2...
output:
YNNYY
result:
ok "YNNYY"
Test #84:
score: 0
Accepted
time: 12ms
memory: 59460kb
input:
1000 4 3 2 3 0 1 1 4 3 0 2 0 4 4 3 2 4 1 1 4 2 2 2 2 3 1 1 4 1 4 4 2 1 0 1 4 1 0 0 1 0 1 2 1 0 3 4 3 0 3 4 0 2 1 3 2 0 3 0 4 2 0 0 1 4 3 2 2 1 3 0 3 0 3 1 4 0 2 0 4 0 0 2 1 0 4 2 4 1 3 2 4 0 1 0 4 1 4 1 1 4 1 1 2 1 3 3 3 0 3 2 4 0 0 0 2 2 0 2 3 2 1 3 1 3 4 4 3 4 4 3 3 0 2 2 3 1 0 1 0 4 3 4 4 1 4 0 2...
output:
YYYYN
result:
ok "YYYYN"
Test #85:
score: 0
Accepted
time: 0ms
memory: 26388kb
input:
321 1 2 3 1 4 3 3 0 2 4 0 2 0 2 3 4 3 1 3 0 0 1 2 4 1 0 3 3 1 2 1 0 3 4 4 4 0 4 0 3 0 3 2 1 0 3 1 3 0 3 0 1 0 1 4 4 1 0 4 1 4 1 3 1 2 0 4 4 1 3 2 3 2 4 3 2 4 0 0 3 3 3 3 2 3 2 2 0 4 2 1 2 2 3 3 3 2 4 1 4 0 4 3 1 0 0 0 2 0 4 3 4 1 0 1 4 2 1 1 4 2 3 3 3 1 0 3 3 3 4 4 4 3 3 1 3 4 3 4 4 3 1 1 1 1 2 3 3 ...
output:
NYNYN
result:
ok "NYNYN"
Test #86:
score: 0
Accepted
time: 1ms
memory: 24136kb
input:
165 3 0 2 3 4 0 0 0 4 1 4 2 0 0 3 2 1 1 3 2 0 1 4 0 4 0 4 0 0 4 0 3 0 1 2 0 4 4 1 2 4 3 4 2 2 0 0 2 4 2 0 4 2 1 1 1 4 1 3 2 4 0 4 1 3 4 4 1 1 3 4 4 0 1 2 3 4 1 3 1 4 0 4 1 2 4 0 2 4 4 3 3 2 4 0 0 3 0 2 3 0 1 4 1 0 3 3 0 4 1 3 3 4 2 3 3 0 1 0 0 1 0 1 0 0 1 2 2 2 0 2 4 2 3 3 2 0 0 2 4 1 0 4 1 1 2 2 1 ...
output:
YYYYY
result:
ok "YYYYY"
Test #87:
score: 0
Accepted
time: 0ms
memory: 13896kb
input:
10 1 1 4 1 2 2 0 0 0 1 0 0 3 0 1 1 4 4 4 0 4 4 2 4 0 0 3 3 3 4 1 1 4 1 2 2 0 0 0 1 0 1 4 0 1 1 4 4 0 0 0 0 3 0 1 1 4 4 4 0 2 2 0 2 3 3 1 1 1 2 4 4 2 4 0 0 3 3 3 4 4 0 2 4 0 0 3 3 3 4 2 2 0 2 3 3 1 1 1 2
output:
YYYNN
result:
ok "YYYNN"
Test #88:
score: 0
Accepted
time: 4ms
memory: 38864kb
input:
662 0 0 2 2 2 4 1 0 3 0 4 1 4 0 4 4 1 3 1 4 3 0 4 4 3 3 4 4 0 4 0 0 1 4 3 0 4 3 0 3 3 1 3 3 1 3 1 4 2 0 4 4 4 1 2 3 2 2 2 1 1 1 0 3 2 4 0 2 4 1 3 2 2 4 1 3 3 4 3 2 0 1 2 3 0 0 1 0 0 3 1 0 2 0 3 1 3 4 3 2 2 2 0 2 4 2 3 0 4 0 4 0 2 3 4 0 2 4 4 3 4 1 2 3 3 1 2 3 4 2 2 2 3 1 1 3 4 3 4 2 4 1 3 2 2 1 4 4 ...
output:
NNYNN
result:
ok "NNYNN"
Test #89:
score: 0
Accepted
time: 2ms
memory: 32836kb
input:
506 3 1 2 1 0 2 3 3 0 3 4 2 1 1 4 4 0 4 3 3 4 0 2 1 1 3 0 3 2 2 0 4 4 2 1 0 3 0 4 2 3 2 2 1 1 1 3 2 2 0 2 4 3 0 4 1 1 4 3 4 1 1 3 0 0 4 0 2 3 2 2 3 3 1 1 2 1 3 0 3 0 4 0 2 4 0 1 4 1 4 3 1 4 4 3 2 3 1 3 0 4 3 4 3 1 1 0 0 4 4 3 1 2 4 2 0 1 4 0 4 1 0 2 1 2 4 1 4 0 4 2 4 3 2 4 3 4 1 4 2 3 3 4 2 4 2 1 3 ...
output:
NNYNN
result:
ok "NNYNN"
Test #90:
score: 0
Accepted
time: 3ms
memory: 43008kb
input:
647 2 2 2 1 1 2 1 2 0 3 1 4 2 0 0 3 0 2 1 3 2 1 1 2 1 1 1 1 4 3 2 0 2 2 0 3 0 1 0 0 3 1 4 0 2 1 2 0 2 2 1 4 1 3 0 0 2 2 0 3 3 1 3 0 4 0 3 1 0 1 2 3 3 1 3 1 1 2 0 4 1 2 2 2 1 2 4 4 4 2 3 1 2 3 3 2 2 4 3 1 3 0 4 1 3 3 2 0 2 3 1 0 2 0 4 1 0 3 1 2 3 2 4 4 2 3 4 2 0 2 3 1 3 0 0 3 3 1 0 1 4 1 1 0 3 4 3 4 ...
output:
YNNYN
result:
ok "YNNYN"
Test #91:
score: 0
Accepted
time: 0ms
memory: 36864kb
input:
491 2 4 1 3 0 4 3 2 3 4 1 3 3 0 0 0 2 4 1 2 2 0 1 0 0 3 0 4 4 2 0 4 4 3 3 0 4 1 3 3 4 0 2 2 1 3 1 3 4 1 3 3 3 2 0 0 0 3 3 0 0 4 2 0 3 4 2 3 1 0 4 4 3 2 3 4 4 3 3 0 3 4 4 0 2 4 3 0 0 2 4 0 4 2 3 2 1 1 1 1 0 1 1 0 0 2 1 3 0 0 2 0 4 2 4 0 3 1 1 2 3 0 2 0 1 3 4 3 0 0 4 4 2 2 3 3 2 2 2 4 2 4 4 4 0 4 1 0 ...
output:
YYNNN
result:
ok "YYNNN"
Test #92:
score: 0
Accepted
time: 1ms
memory: 36424kb
input:
335 4 0 4 2 0 1 3 2 4 1 1 3 2 4 0 1 1 3 2 0 4 1 2 2 0 2 2 4 4 4 3 2 3 0 1 3 3 2 3 2 3 1 4 0 0 0 3 0 4 0 4 0 3 4 0 1 4 3 4 4 0 3 2 2 4 3 1 2 0 0 1 1 3 4 3 3 4 0 1 4 1 0 0 2 1 1 3 3 0 1 1 3 4 0 2 3 2 4 0 2 0 2 3 4 4 3 2 0 4 3 2 1 2 1 3 4 1 0 4 2 1 4 1 0 0 0 4 3 2 1 2 0 0 1 1 2 1 4 2 0 3 0 4 2 0 4 0 3 ...
output:
YNYYY
result:
ok "YNYYY"
Test #93:
score: 0
Accepted
time: 8ms
memory: 54644kb
input:
988 4 2 1 1 3 3 4 2 0 2 0 2 1 1 4 4 3 4 4 1 1 4 3 4 4 2 1 2 0 2 2 0 0 3 4 1 1 0 1 0 1 3 1 1 4 0 2 0 0 4 0 4 0 1 2 2 2 4 3 1 4 0 0 3 2 4 1 2 3 0 3 4 0 4 3 3 2 1 3 2 4 1 1 4 4 0 4 0 0 1 0 2 4 0 0 0 3 0 2 0 3 2 1 4 3 1 1 0 1 0 4 1 4 4 0 2 4 1 1 1 0 0 3 4 3 1 3 3 2 2 2 0 3 1 4 3 1 2 4 0 1 1 2 0 0 3 1 1 ...
output:
YYNNN
result:
ok "YYNNN"
Test #94:
score: 0
Accepted
time: 9ms
memory: 58172kb
input:
1000 3 4 4 0 3 1 1 2 3 1 3 1 2 2 3 0 3 0 3 1 1 4 2 3 2 1 3 2 0 3 2 2 4 3 0 3 3 2 3 2 0 3 1 2 4 4 2 0 1 1 1 3 4 3 3 4 0 4 3 3 1 3 2 4 3 3 4 4 0 4 0 0 3 1 2 3 2 4 3 1 0 4 0 2 3 1 1 0 1 4 2 4 0 4 0 2 2 3 3 1 4 2 0 2 2 3 2 1 2 1 2 0 2 0 1 0 2 2 2 3 0 2 0 1 4 1 0 0 4 3 0 4 1 0 1 4 3 0 1 2 0 4 1 1 4 1 4 4...
output:
YYNYN
result:
ok "YYNYN"
Test #95:
score: 0
Accepted
time: 8ms
memory: 58856kb
input:
1000 4 3 1 0 0 1 0 3 1 2 4 3 0 0 1 4 4 2 0 1 2 0 4 0 2 3 0 1 0 3 3 0 2 0 4 3 1 1 2 2 1 1 1 4 4 2 2 4 1 3 0 2 1 3 1 2 0 4 2 3 3 0 2 1 2 0 4 4 3 3 2 2 1 3 0 4 1 0 1 1 2 4 1 2 3 3 3 4 3 0 4 1 4 0 1 4 3 2 1 3 0 3 2 4 1 4 2 2 3 4 1 2 4 3 4 4 3 3 3 3 3 4 2 1 3 3 2 1 3 0 3 1 3 2 0 2 1 3 2 4 4 2 3 4 2 0 3 0...
output:
NYYNY
result:
ok "NYYNY"
Test #96:
score: 0
Accepted
time: 8ms
memory: 50608kb
input:
1000 1 0 4 3 3 4 2 2 0 0 4 0 1 0 4 1 3 2 2 1 3 1 4 2 4 3 2 2 4 1 0 3 4 4 1 1 0 3 0 4 0 3 2 0 2 2 0 1 0 2 2 3 2 4 1 0 3 0 1 1 3 2 3 3 3 1 1 0 2 1 2 2 0 1 2 1 0 1 2 3 0 1 3 2 3 4 2 0 3 4 0 4 0 2 3 0 4 2 4 4 1 0 3 2 0 4 3 2 4 4 4 4 1 1 4 1 0 3 3 3 4 1 3 0 1 0 3 4 0 2 3 0 1 2 1 4 2 1 2 1 2 0 3 3 3 1 2 4...
output:
NNNNY
result:
ok "NNNNY"
Test #97:
score: 0
Accepted
time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 0 2 1...
output:
NNYNN
result:
ok "NNYNN"
Test #100:
score: 0
Accepted
time: 10ms
memory: 57548kb
input:
1000 2 2 1 2 2 0 2 2 3 4 0 2 2 2 3 0 4 2 0 3 0 4 3 2 4 0 3 4 2 4 4 2 0 1 0 3 0 3 1 2 1 0 0 0 4 4 3 4 3 1 3 3 1 3 0 1 4 0 0 2 0 1 3 3 1 0 3 1 3 4 4 3 3 3 1 1 0 1 3 0 4 4 2 2 2 2 0 3 0 2 1 2 2 1 4 2 4 2 0 2 2 2 3 1 4 3 0 1 2 0 3 2 0 1 0 2 4 3 4 4 0 2 0 0 2 1 0 3 2 0 4 3 1 1 2 3 4 4 2 2 3 0 0 3 4 0 3 0...
output:
YYYYY
result:
ok "YYYYY"
Test #101:
score: 0
Accepted
time: 6ms
memory: 49256kb
input:
1000 1 0 0 4 3 2 4 3 3 0 4 1 0 4 4 2 1 0 1 3 4 0 3 3 3 2 3 1 4 0 2 3 0 0 2 2 1 2 4 4 1 4 4 4 2 1 2 2 3 0 4 4 0 4 1 1 0 2 0 3 0 1 1 1 3 0 0 4 4 4 4 0 4 0 3 0 3 3 0 4 4 1 4 1 2 1 4 0 1 2 0 1 0 4 3 2 2 3 4 3 0 1 2 2 0 2 2 0 0 4 1 1 3 2 0 3 3 0 0 3 1 2 2 0 2 1 0 2 3 2 4 1 0 0 0 0 1 1 1 0 2 4 1 4 4 2 1 1...
output:
NNYNN
result:
ok "NNYNN"
Test #102:
score: 0
Accepted
time: 9ms
memory: 53168kb
input:
1000 2 0 0 3 1 3 3 4 4 0 0 1 3 1 0 1 1 3 4 4 1 0 0 1 1 1 4 4 1 3 3 2 4 0 1 1 4 2 3 1 1 3 1 3 2 2 0 0 1 2 3 3 2 3 3 1 0 1 3 2 2 0 3 3 1 1 4 1 0 4 2 2 2 3 1 0 0 2 2 1 4 1 0 3 0 0 2 4 2 0 1 1 1 1 1 4 1 1 2 0 3 0 3 1 0 2 0 1 0 4 0 1 1 2 4 4 2 1 0 4 4 1 4 4 0 0 4 2 0 0 1 2 1 2 3 4 4 3 3 1 0 4 2 0 3 4 2 1...
output:
NNYYN
result:
ok "NNYYN"
Test #103:
score: 0
Accepted
time: 12ms
memory: 58816kb
input:
1000 0 0 3 3 2 3 3 3 1 3 4 0 1 2 1 4 2 4 4 3 3 0 1 2 0 3 3 3 1 2 1 0 0 0 4 2 4 0 0 4 1 2 4 3 0 3 0 3 1 2 1 4 2 0 4 3 3 1 1 3 2 0 0 1 3 4 0 4 0 1 1 2 2 1 3 2 0 2 4 4 1 3 2 2 2 3 1 3 0 3 2 0 4 4 1 3 0 3 3 2 2 0 4 3 2 1 4 1 4 4 1 0 1 3 2 4 0 0 1 4 0 1 0 3 3 0 4 0 3 0 1 2 0 4 0 0 1 0 1 3 4 0 3 1 2 2 0 1...
output:
YYYYN
result:
ok "YYYYN"
Test #104:
score: 0
Accepted
time: 3ms
memory: 44416kb
input:
643 3 2 3 4 0 0 4 0 3 4 0 4 2 2 3 3 1 2 2 0 4 1 3 1 1 0 0 1 4 0 2 4 1 4 0 4 2 2 3 3 0 3 2 0 2 3 2 4 3 4 4 3 4 4 1 1 2 4 0 3 1 3 2 0 4 0 0 0 3 0 0 4 3 3 0 4 2 3 3 2 0 1 0 1 1 1 3 0 3 0 4 3 1 4 2 0 1 4 0 1 4 0 3 4 3 2 4 1 0 3 2 1 1 2 0 1 1 0 2 4 3 0 1 2 1 4 1 2 0 2 0 3 1 1 3 1 4 4 4 1 3 2 1 4 4 4 4 3 ...
output:
NNYYN
result:
ok "NNYYN"
Test #105:
score: 0
Accepted
time: 1ms
memory: 30304kb
input:
487 4 0 4 4 3 3 4 1 1 0 4 4 1 4 3 0 3 3 4 4 0 1 4 1 4 0 4 3 0 3 1 2 0 1 1 3 2 3 1 2 1 3 0 1 2 0 3 4 4 0 1 2 2 0 1 2 0 0 3 4 0 3 0 3 3 3 2 3 2 0 2 0 2 4 0 0 0 0 0 0 3 3 1 2 0 4 2 1 3 1 1 0 3 3 0 1 1 1 0 2 0 3 0 4 2 4 0 1 4 0 4 1 2 1 3 3 3 0 3 4 2 3 3 2 0 0 1 1 3 3 0 2 0 1 3 0 0 2 3 1 0 0 2 4 3 2 1 3 ...
output:
NYNNN
result:
ok "NYNNN"
Test #106:
score: 0
Accepted
time: 2ms
memory: 30496kb
input:
332 1 2 3 1 2 4 4 2 3 2 4 4 1 3 1 1 2 2 2 0 2 0 4 2 0 4 0 4 0 1 1 2 2 4 4 1 1 1 4 1 0 3 2 3 2 2 2 4 0 4 2 3 1 3 3 2 3 0 0 4 4 1 2 3 4 3 1 0 3 3 0 2 1 2 4 4 2 1 2 0 2 3 3 4 3 0 1 4 4 1 2 0 3 1 3 2 2 2 3 2 1 3 3 0 0 4 4 4 4 3 0 2 4 4 3 2 2 2 2 0 1 2 1 3 4 1 4 2 2 0 4 2 2 1 0 2 4 4 1 1 3 4 0 2 3 2 0 1 ...
output:
NNNYY
result:
ok "NNNYY"
Test #107:
score: 0
Accepted
time: 4ms
memory: 38540kb
input:
472 1 2 0 2 4 1 4 1 2 2 3 2 3 1 4 4 3 2 2 3 0 0 4 3 3 3 4 1 0 2 3 3 2 3 1 4 4 1 2 2 2 4 3 3 0 3 2 4 0 2 2 2 3 0 2 2 2 0 2 4 1 2 2 3 1 3 0 2 0 2 0 1 4 1 2 0 4 1 2 3 4 4 1 1 4 3 1 0 3 4 3 2 3 0 2 3 4 1 0 1 1 4 3 4 2 3 3 4 1 0 3 2 1 0 1 4 3 1 0 1 0 2 4 4 2 1 2 1 4 0 1 0 4 3 1 1 2 3 2 0 3 4 4 4 2 1 1 4 ...
output:
YYYNY
result:
ok "YYYNY"
Test #108:
score: 0
Accepted
time: 0ms
memory: 15948kb
input:
21 1 4 1 4 3 1 4 0 3 3 1 0 4 2 2 4 3 4 0 1 0 4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3 4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3 3 1 3 1 0 3 1 2 0 0 3 2 1 4 4 1 0 1 2 3 2 4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3 0 3 0 3 2 0 3 4 2 2 0 4 3 1 1 3 2 3 4 0 4 4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3 2 0...
output:
NYYNN
result:
ok "NYYNN"
Test #109:
score: 0
Accepted
time: 4ms
memory: 43456kb
input:
673 0 0 3 1 1 3 0 4 0 4 0 3 0 0 3 0 1 4 3 3 0 0 0 4 0 3 0 2 3 1 1 3 1 1 4 4 0 2 1 4 0 1 2 3 4 2 1 4 1 1 2 2 4 2 1 3 1 3 2 0 3 2 0 3 2 2 1 0 0 1 3 2 0 3 2 3 0 3 1 0 1 0 3 3 4 3 3 0 2 2 4 2 2 0 1 2 3 2 4 1 0 3 1 4 1 3 2 0 0 2 4 3 4 1 2 0 1 1 3 4 2 2 3 0 3 4 4 1 1 4 4 3 4 1 4 0 0 1 2 2 2 0 4 1 2 3 0 4 ...
output:
YNYNN
result:
ok "YNYNN"
Test #110:
score: 0
Accepted
time: 6ms
memory: 50852kb
input:
813 2 0 3 0 1 1 3 3 4 3 2 0 3 1 0 3 0 2 0 2 2 0 3 3 4 4 2 2 4 1 1 2 2 2 0 0 2 1 1 4 0 0 2 1 1 2 4 0 3 2 1 0 4 1 1 0 2 2 1 2 4 2 4 0 0 3 1 4 1 3 1 0 0 0 3 2 3 2 0 0 2 1 0 2 4 2 2 0 4 4 2 3 4 2 2 1 0 2 4 0 3 4 0 1 2 0 2 4 1 1 3 1 4 1 2 0 1 4 0 2 3 3 3 3 3 3 2 4 0 3 0 4 0 0 0 1 1 0 4 2 2 4 1 2 3 4 2 0 ...
output:
NNYYN
result:
ok "NNYYN"
Test #111:
score: 0
Accepted
time: 3ms
memory: 41368kb
input:
658 3 4 0 1 2 2 4 3 3 4 0 3 1 1 0 0 3 1 0 0 3 0 2 4 0 2 0 1 4 3 4 0 3 4 4 2 4 0 1 1 0 4 3 1 4 3 2 0 3 1 3 3 2 3 0 1 3 1 3 0 2 4 2 2 3 1 1 2 1 2 3 1 2 1 0 4 4 2 4 0 4 1 1 4 2 4 4 0 4 2 3 1 3 0 0 2 0 1 0 3 3 4 1 4 3 2 1 1 4 1 1 1 0 3 1 2 3 4 2 4 1 0 3 3 0 3 0 2 4 3 2 1 2 4 2 1 4 2 0 1 4 3 4 2 2 4 2 2 ...
output:
NYNNN
result:
ok "NYNNN"
Test #112:
score: 0
Accepted
time: 10ms
memory: 59964kb
input:
798 3 4 3 3 0 1 2 3 1 1 4 3 1 1 4 2 4 1 0 3 2 3 3 4 3 2 4 4 0 0 1 2 0 1 2 0 3 3 3 1 4 4 0 3 1 0 4 0 4 0 3 1 0 4 1 2 2 2 1 2 1 4 4 2 4 0 3 4 4 2 1 2 3 2 4 1 0 3 3 0 3 4 2 1 0 4 3 1 4 2 4 2 3 3 3 2 3 1 4 0 4 4 3 3 2 0 2 3 3 4 3 1 2 0 1 0 3 0 1 4 0 4 2 3 2 4 3 3 2 3 3 2 4 3 4 0 4 2 3 0 0 2 4 2 1 3 1 1 ...
output:
YYYYY
result:
ok "YYYYY"
Test #113:
score: 0
Accepted
time: 2ms
memory: 34376kb
input:
346 3 2 0 2 2 4 3 1 0 1 2 1 4 0 4 0 2 0 1 4 2 2 3 2 2 4 3 1 2 1 2 4 3 0 3 2 1 2 0 3 4 0 1 4 3 1 3 0 1 1 4 1 2 0 1 4 2 3 3 2 2 3 0 0 0 4 0 4 0 0 1 2 4 2 3 1 1 3 4 3 2 1 0 2 0 4 0 3 3 0 4 0 2 2 4 0 2 3 0 1 0 2 3 1 3 3 3 1 2 0 2 0 3 2 2 3 3 4 0 2 2 3 3 3 4 3 2 1 0 0 4 0 2 1 0 2 2 2 0 4 1 1 0 4 3 0 4 2 ...
output:
NNNYY
result:
ok "NNNYY"
Test #114:
score: 0
Accepted
time: 11ms
memory: 57940kb
input:
1000 3 4 3 1 4 2 0 2 4 0 3 0 1 2 2 1 4 0 0 0 2 0 2 4 4 1 2 4 0 3 2 1 2 2 1 1 4 0 0 2 2 1 3 2 4 1 4 3 3 2 1 4 4 1 1 4 2 1 0 1 2 1 4 4 3 4 3 3 0 2 1 3 4 0 1 2 0 1 2 3 4 0 2 2 0 2 2 1 2 2 0 0 1 3 4 3 1 3 1 4 2 4 0 0 1 2 2 3 2 0 2 0 3 3 0 0 3 0 0 2 3 1 4 1 1 3 0 2 1 2 4 2 3 3 2 3 0 0 4 2 2 3 2 3 0 4 4 0...
output:
NYNYY
result:
ok "NYNYY"
Test #115:
score: 0
Accepted
time: 0ms
memory: 26184kb
input:
100 0 4 2 3 0 1 1 2 1 2 3 2 4 3 3 1 4 1 2 0 1 1 1 0 4 4 0 0 4 0 0 4 2 1 4 0 0 0 4 4 4 0 3 2 3 3 0 4 3 2 0 0 2 4 3 3 3 2 1 3 2 2 1 3 0 0 3 4 0 3 2 3 4 4 1 4 2 4 2 1 2 4 4 1 1 2 3 3 2 4 4 3 2 3 0 1 1 4 1 1 3 2 0 1 3 4 4 0 4 0 1 0 2 1 1 4 2 4 0 3 4 4 4 3 2 2 3 3 2 3 3 2 0 4 2 3 3 3 2 2 2 3 1 0 1 1 3 2 ...
output:
YYYNN
result:
ok "YYYNN"
Test #116:
score: 0
Accepted
time: 0ms
memory: 17992kb
input:
100 0 0 1 0 4 4 4 0 3 0 0 1 0 0 2 0 4 0 4 0 1 2 2 0 2 1 0 4 2 3 4 3 1 1 1 4 1 2 3 1 4 3 1 1 1 4 1 1 3 2 1 2 2 4 2 3 4 1 3 1 3 1 3 2 2 0 1 2 1 3 3 4 2 3 2 2 0 1 3 4 2 3 0 1 4 1 0 1 2 4 0 2 0 2 3 2 4 1 2 2 1 1 2 1 0 0 0 1 4 1 1 2 1 1 3 1 0 1 0 1 2 3 3 1 3 2 1 0 3 4 0 4 2 2 2 0 2 3 4 2 0 4 2 2 2 0 2 2 ...
output:
YNNNN
result:
ok "YNNNN"
Test #117:
score: 0
Accepted
time: 0ms
memory: 18016kb
input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YYY
result:
ok "YNYYY"
Test #120:
score: 0
Accepted
time: 0ms
memory: 13920kb
input:
100 0 3 1 0 0 1 0 1 1 0 0 4 2 3 1 1 0 1 3 2 3 2 1 1 4 3 2 3 2 2 4 3 2 2 1 3 3 3 2 0 0 2 3 0 1 2 0 3 1 1 3 4 1 4 3 0 1 1 1 4 1 3 0 3 2 1 4 4 4 2 1 2 0 0 4 3 0 2 1 1 4 3 0 3 4 0 4 4 3 3 2 2 2 0 4 1 1 3 2 3 0 3 1 0 0 1 0 1 1 0 0 4 2 3 1 1 0 1 3 2 3 2 1 1 4 3 2 3 2 2 4 3 2 2 1 3 3 3 2 0 0 2 3 0 1 2 0 3 ...
output:
NNYNN
result:
ok "NNYNN"
Test #121:
score: 0
Accepted
time: 0ms
memory: 22072kb
input:
100 4 1 3 2 2 3 0 4 0 0 1 2 0 2 1 1 1 0 2 1 4 1 0 3 4 3 2 2 4 4 0 3 0 2 2 3 1 4 0 4 4 3 4 2 3 1 4 0 4 0 4 2 4 4 0 3 4 3 1 3 0 3 3 1 2 0 4 4 2 4 4 0 2 2 3 0 0 4 0 2 0 1 4 4 3 1 1 2 0 1 1 4 3 2 1 3 2 4 1 3 4 1 3 2 2 3 0 4 0 0 1 2 0 2 1 1 1 0 2 1 4 1 0 3 4 3 2 2 4 4 0 3 0 2 2 3 1 4 0 4 4 3 4 2 3 1 4 0 ...
output:
YYYYY
result:
ok "YYYYY"
Test #122:
score: 0
Accepted
time: 0ms
memory: 17968kb
input:
100 0 2 0 4 0 0 1 3 3 2 3 3 3 1 3 4 2 0 3 0 2 3 4 0 0 4 1 2 2 3 1 2 2 4 3 3 0 0 2 0 1 3 1 0 2 0 2 0 4 4 4 2 0 4 4 0 3 3 3 0 2 1 4 2 2 3 0 4 1 4 4 4 2 1 3 3 3 4 4 1 3 2 3 4 0 4 4 2 3 1 4 0 2 1 2 2 1 3 0 1 0 2 0 4 0 0 1 3 3 2 3 3 3 1 3 4 2 0 3 0 2 3 4 0 0 4 1 2 2 3 1 2 2 4 3 3 0 0 2 0 1 3 1 0 2 0 2 0 ...
output:
YNNNN
result:
ok "YNNNN"
Test #123:
score: 0
Accepted
time: 0ms
memory: 28068kb
input:
100 3 4 3 0 0 2 3 1 2 0 2 4 4 2 3 0 3 4 4 3 1 1 3 3 3 0 4 3 4 4 4 1 2 3 4 2 1 3 3 3 4 2 3 1 0 1 0 1 3 4 1 3 4 0 3 4 4 0 3 1 2 0 1 0 3 2 1 1 0 2 2 4 3 3 0 4 4 1 0 3 0 4 2 1 1 1 4 4 1 3 4 1 3 3 1 1 3 0 1 0 0 1 0 2 2 4 0 3 4 2 4 1 1 4 0 2 0 1 1 0 3 3 0 0 0 2 1 0 1 1 1 3 4 0 1 4 3 0 0 0 1 4 0 3 2 3 2 3 ...
output:
YYYYY
result:
ok "YYYYY"
Test #124:
score: 0
Accepted
time: 1ms
memory: 20052kb
input:
63 1 2 0 2 1 4 0 1 0 2 2 0 0 2 3 2 0 0 2 3 1 3 0 2 4 3 3 1 4 2 4 3 4 0 2 2 3 1 4 1 3 3 0 0 4 1 4 0 3 4 2 3 0 3 1 2 1 3 3 4 2 2 0 1 2 0 2 1 4 0 1 0 2 2 0 0 2 3 2 0 0 2 3 1 3 0 2 4 3 3 1 4 2 4 3 4 0 2 2 3 1 4 1 3 3 0 0 4 1 4 0 3 4 2 3 0 3 1 2 1 3 3 4 2 2 0 0 1 4 1 0 3 4 0 4 1 1 4 4 1 2 1 4 4 1 2 0 2 4...
output:
YYYNY
result:
ok "YYYNY"
Test #125:
score: 0
Accepted
time: 0ms
memory: 13900kb
input:
8 3 4 4 3 2 3 2 2 2 3 3 2 1 2 1 1 1 2 2 1 0 1 0 0 4 0 0 4 3 4 3 3 0 1 1 0 4 0 4 4 1 2 2 1 0 1 0 0 1 2 2 1 1 3 2 0 4 0 0 4 3 4 3 3
output:
YYYNN
result:
ok "YYYNN"
Test #126:
score: 0
Accepted
time: 0ms
memory: 13904kb
input:
56 2 1 1 4 0 3 3 3 0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:
score: 0
Accepted
time: 0ms
memory: 18008kb
input:
89 0 1 1 1 4 0 0 0 4 4 4 4 2 1 2 2 3 0 3 3 0 1 0 2 1 1 3 4 0 1 4 3 2 1 0 0 3 3 0 3 0 0 0 1 4 0 0 0 1 4 2 2 2 3 4 2 1 0 2 2 1 2 2 2 3 0 3 4 2 0 0 2 2 2 2 1 4 0 0 0 0 3 1 2 0 2 2 2 2 3 4 4 4 2 3 3 3 2 2 2 2 0 4 0 0 1 3 1 1 3 4 3 0 4 4 1 2 3 4 2 1 0 4 3 3 1 1 3 1 3 3 3 4 2 3 3 3 4 2 0 0 0 1 2 0 4 3 0 0...
output:
NYNNY
result:
ok "NYNNY"
Test #130:
score: 0
Accepted
time: 1ms
memory: 20044kb
input:
34 0 1 4 3 1 0 4 0 0 0 0 3 0 4 2 2 0 3 3 3 1 4 0 2 1 4 4 1 3 2 2 0 3 3 0 1 4 3 1 0 4 0 0 0 0 3 0 4 2 2 0 3 3 3 1 4 0 2 1 4 4 1 3 2 2 0 3 3 2 3 1 0 3 2 1 2 2 2 2 0 2 1 4 4 2 0 0 0 3 1 2 4 3 1 1 3 0 4 4 2 0 0 4 0 3 2 0 4 3 4 4 4 4 2 4 3 1 1 4 2 2 2 0 3 4 1 0 3 3 0 2 1 1 4 2 2 2 3 1 0 3 2 1 2 2 2 2 0 2...
output:
NYNYN
result:
ok "NYNYN"
Test #131:
score: 0
Accepted
time: 0ms
memory: 22104kb
input:
78 0 0 2 4 1 1 0 1 0 3 4 3 0 3 2 4 2 4 2 2 2 0 1 4 4 4 3 0 0 0 1 4 2 3 4 0 2 4 1 0 0 3 2 2 2 4 4 3 2 2 1 2 3 1 2 1 3 4 1 3 2 2 1 1 1 3 2 3 1 3 4 4 4 4 0 0 1 1 3 3 0 2 4 4 3 4 3 1 2 1 3 1 0 2 0 2 0 0 0 3 4 2 2 2 1 3 3 3 4 2 0 1 2 3 0 2 4 3 3 1 0 0 0 2 2 1 0 0 4 0 1 4 0 4 1 2 4 1 0 0 4 4 4 1 0 1 4 1 2...
output:
YYNYY
result:
ok "YYNYY"
Test #132:
score: 0
Accepted
time: 0ms
memory: 15944kb
input:
26 3 1 1 3 1 0 3 2 0 1 0 2 3 0 3 3 1 2 4 2 3 2 2 1 3 4 0 3 4 0 3 2 0 4 2 3 2 4 0 2 0 0 3 4 1 4 0 4 4 3 0 1 4 2 2 4 2 1 4 3 1 2 1 3 4 1 4 4 2 3 0 3 4 3 3 2 4 0 1 4 4 1 4 3 1 0 3 4 3 0 1 3 1 1 4 0 2 0 1 0 0 4 1 2 1 4 4 1 4 3 1 0 3 4 3 0 1 3 1 1 4 0 2 0 1 0 0 4 1 2 4 2 2 4 2 1 4 3 1 2 1 3 4 1 4 4 2 3 0...
output:
YNNNY
result:
ok "YNNNY"
Test #133:
score: 0
Accepted
time: 0ms
memory: 20040kb
input:
75 2 2 3 1 3 0 2 1 0 1 4 1 4 4 4 3 3 0 1 4 4 2 2 2 2 2 1 2 4 1 1 4 3 2 2 3 0 1 4 1 0 0 1 2 3 3 0 4 4 4 4 3 0 1 3 4 0 0 3 3 1 0 0 3 0 1 3 0 2 3 3 4 2 2 0 1 1 2 0 2 4 1 0 4 0 3 0 3 3 3 2 2 4 0 3 3 1 1 1 1 1 0 1 3 0 0 3 2 1 1 2 4 0 3 0 4 4 0 1 2 2 4 3 3 3 3 2 4 0 2 3 4 4 2 2 0 4 4 2 4 0 2 4 1 2 2 3 1 1...
output:
NYNNY
result:
ok "NYNNY"
Test #134:
score: 0
Accepted
time: 0ms
memory: 22088kb
input:
100 3 4 2 3 1 1 2 0 3 0 3 2 1 0 4 1 4 0 0 4 4 1 3 4 3 3 4 3 3 1 2 0 0 0 3 3 0 4 1 1 3 1 0 4 3 2 1 0 1 0 0 2 4 0 2 4 4 3 1 1 3 3 3 3 2 3 4 4 3 2 2 3 4 1 2 4 4 0 2 3 0 4 4 1 3 3 0 3 1 4 3 4 4 2 2 4 0 3 3 2 4 0 3 4 2 2 3 1 4 1 4 3 2 1 0 2 0 1 1 0 0 2 4 0 4 4 0 4 4 2 3 1 1 1 4 4 1 0 2 2 4 2 1 0 4 3 2 1 ...
output:
YNNNY
result:
ok "YNNNY"
Test #135:
score: 0
Accepted
time: 1ms
memory: 22088kb
input:
100 0 0 0 4 4 4 0 0 3 3 4 0 0 1 0 1 3 2 0 0 1 2 0 3 3 4 1 4 0 0 0 0 2 2 3 2 3 1 2 3 3 1 1 2 2 1 1 1 0 3 1 4 0 4 3 3 1 4 4 3 4 1 2 4 1 2 3 1 3 0 0 4 0 4 0 0 0 0 2 0 1 2 1 2 2 3 4 4 3 4 4 0 3 0 4 4 1 4 4 4 3 3 3 2 2 2 3 3 1 1 2 3 3 4 3 4 1 0 3 3 4 0 3 1 1 2 4 2 3 3 3 3 0 0 1 0 1 4 0 1 1 4 4 0 0 4 4 4 ...
output:
YYYYY
result:
ok "YYYYY"
Test #136:
score: 0
Accepted
time: 0ms
memory: 19908kb
input:
100 4 2 3 0 2 1 1 3 1 4 2 2 0 1 4 3 4 1 2 3 3 3 4 4 4 4 4 1 2 1 1 2 1 2 2 0 2 3 0 3 1 3 1 0 0 0 4 2 2 1 3 4 0 0 1 3 4 1 2 0 2 0 1 2 2 0 4 1 1 2 2 3 0 0 0 0 4 0 2 2 4 1 4 4 2 0 4 0 0 4 3 3 3 2 2 1 3 4 1 3 2 0 1 3 0 4 4 1 4 2 0 0 3 4 2 1 2 4 0 1 1 1 2 2 2 2 2 4 0 4 4 0 4 0 0 3 0 0 3 1 4 1 4 3 3 3 2 0 ...
output:
NYYYN
result:
ok "NYYYN"
Test #137:
score: 0
Accepted
time: 0ms
memory: 26184kb
input:
100 3 2 3 1 4 2 2 4 4 0 3 2 0 4 2 0 3 3 2 0 1 0 1 1 0 0 1 0 4 2 1 0 3 3 3 3 0 3 4 3 3 3 1 1 4 3 2 2 4 4 1 2 1 4 3 4 3 2 4 3 0 4 4 2 1 2 2 2 4 2 2 0 3 4 4 2 2 0 0 2 3 0 3 2 4 4 0 3 1 2 0 1 0 3 2 0 0 3 4 2 4 3 4 2 0 3 3 0 0 1 4 3 1 0 3 1 4 4 3 1 2 1 2 2 1 1 2 1 0 3 2 1 4 4 4 4 1 4 0 4 4 4 2 2 0 4 3 3 ...
output:
YYYNY
result:
ok "YYYNY"
Test #138:
score: 0
Accepted
time: 1ms
memory: 15944kb
input:
100 1 0 1 3 3 3 4 0 3 2 2 0 1 0 2 2 1 4 3 4 4 2 1 3 1 0 0 0 3 0 4 0 0 2 4 0 0 0 2 3 3 0 3 3 1 3 3 3 1 2 3 4 0 4 3 1 4 4 0 4 3 3 2 4 1 1 3 3 3 0 3 4 2 2 1 0 3 2 1 1 1 2 2 4 0 3 1 2 0 2 0 4 2 3 3 4 3 0 0 1 2 1 2 4 4 4 0 1 4 3 3 1 2 1 3 3 2 0 4 0 0 3 2 4 2 1 1 1 4 1 0 1 1 3 0 1 1 1 3 4 4 1 4 4 2 4 4 4 ...
output:
YNNNN
result:
ok "YNNNN"
Test #139:
score: 0
Accepted
time: 1ms
memory: 30280kb
input:
100 2 3 3 4 4 0 0 1 1 3 2 0 1 3 3 3 0 0 0 4 3 1 4 0 3 3 3 0 3 2 0 3 4 0 4 2 3 1 2 0 1 3 2 0 2 0 4 3 4 1 3 3 1 0 3 1 3 3 4 1 2 1 1 1 1 1 4 3 2 0 4 4 2 4 2 0 1 3 0 3 4 0 1 3 1 0 4 3 4 3 3 1 3 4 2 2 4 0 4 1 0 1 1 2 2 3 3 4 4 1 0 3 4 1 1 1 3 3 3 2 1 4 2 3 1 1 1 3 1 0 3 1 2 3 2 0 1 4 0 3 4 1 0 3 0 3 2 1 ...
output:
YYYYY
result:
ok "YYYYY"
Test #140:
score: 0
Accepted
time: 1ms
memory: 13924kb
input:
100 2 1 2 3 0 4 3 0 2 2 2 2 0 4 1 1 4 2 4 2 0 1 0 4 2 4 1 2 3 2 3 4 4 0 2 1 1 0 2 4 0 1 1 0 0 0 4 0 1 3 4 3 1 1 4 1 3 3 3 2 2 4 3 1 3 1 1 1 2 3 3 4 3 1 3 4 3 3 1 2 1 4 1 2 3 0 2 0 2 4 3 0 3 3 3 3 3 1 0 4 2 1 2 3 0 4 3 0 2 2 2 2 0 4 1 1 4 2 4 2 0 1 0 4 2 4 1 2 3 2 3 4 4 0 2 1 1 0 2 4 0 1 1 0 0 0 4 0 ...
output:
NNNNY
result:
ok "NNNNY"
Test #141:
score: 0
Accepted
time: 1ms
memory: 28256kb
input:
100 1 4 3 2 4 4 2 2 2 0 2 3 3 1 1 4 2 3 0 4 1 2 2 4 1 4 2 4 4 1 4 2 4 0 1 4 2 3 1 1 1 1 1 1 3 2 2 4 3 4 3 0 1 4 4 1 0 1 1 1 4 1 2 0 2 1 4 4 2 4 3 1 0 4 2 4 4 2 4 1 1 2 4 4 2 0 0 4 3 2 0 0 1 2 4 4 3 0 3 1 2 0 4 3 0 0 3 3 3 1 3 4 4 2 2 0 3 4 1 0 2 3 3 0 2 0 3 0 0 2 0 3 0 1 2 0 3 4 2 2 2 2 2 2 4 3 3 0 ...
output:
YYYYY
result:
ok "YYYYY"
Test #142:
score: 0
Accepted
time: 1ms
memory: 15812kb
input:
100 3 3 0 4 4 1 1 0 3 1 1 1 4 4 2 2 0 3 2 4 0 1 1 1 2 4 0 0 1 0 4 3 3 1 4 1 1 1 2 3 4 4 3 0 2 3 0 1 0 3 4 1 4 0 3 0 1 4 0 1 4 0 3 2 2 4 3 0 2 0 3 0 1 0 1 0 0 4 3 2 0 4 0 2 0 3 4 1 2 1 2 3 3 3 1 0 1 4 1 2 1 1 3 2 2 4 4 3 1 4 4 4 2 2 0 0 3 1 0 2 3 4 4 4 0 2 3 3 4 3 2 1 1 4 2 4 4 4 0 1 2 2 1 3 0 1 3 4 ...
output:
NNYNN
result:
ok "NNYNN"
Test #143:
score: 0
Accepted
time: 0ms
memory: 15944kb
input:
28 0 2 3 1 1 0 2 3 0 0 0 3 0 2 4 1 0 2 0 3 2 0 0 4 2 4 4 2 4 1 2 0 0 4 1 2 4 4 4 2 4 1 3 0 4 1 4 2 1 4 4 3 1 3 3 1 1 3 4 2 2 1 3 4 1 1 1 4 1 3 0 2 1 3 1 4 3 1 1 0 3 0 0 3 0 2 3 1 1 0 2 3 0 0 0 3 0 2 4 1 0 2 0 3 2 0 0 4 2 4 4 2 4 1 2 0 0 4 1 2 4 4 4 2 4 1 3 0 4 1 4 2 1 4 4 3 1 3 3 1 2 4 0 3 3 2 4 0 2...
output:
NNYNY
result:
ok "NNYNY"
Test #144:
score: 0
Accepted
time: 0ms
memory: 17992kb
input:
100 3 1 3 3 4 0 4 3 0 3 4 3 2 1 0 3 4 1 1 1 4 4 2 3 4 4 4 1 0 0 2 0 3 3 3 2 0 3 4 2 3 4 2 1 1 0 0 2 1 3 1 4 2 0 0 4 1 3 2 2 0 0 2 2 0 2 2 0 4 4 3 4 0 2 0 2 4 0 2 3 2 1 3 4 2 3 0 0 3 4 2 2 4 2 2 3 4 2 2 0 0 3 0 0 1 2 1 0 2 0 1 0 4 3 2 0 1 3 3 3 1 1 4 0 1 1 1 3 2 2 4 2 0 0 0 4 2 0 1 4 0 1 4 3 3 2 2 4 ...
output:
NYNNN
result:
ok "NYNNN"
Test #145:
score: 0
Accepted
time: 0ms
memory: 17884kb
input:
100 2 1 1 4 0 4 2 0 3 2 0 1 1 3 4 1 0 2 1 0 1 1 2 1 0 0 3 3 4 1 0 2 2 2 2 4 3 3 4 4 1 2 0 0 0 1 2 1 3 2 1 0 3 1 3 2 2 4 3 3 4 2 3 1 3 2 2 4 3 3 2 4 3 3 2 1 0 4 4 4 1 2 3 4 2 3 3 3 2 2 4 3 1 4 2 1 1 4 3 2 0 4 4 2 3 2 0 3 1 0 3 4 4 1 2 4 3 0 3 3 4 4 0 4 3 3 1 1 2 4 3 0 0 0 0 2 1 1 2 2 4 0 3 3 3 4 0 4 ...
output:
YYNNN
result:
ok "YYNNN"
Test #146:
score: 0
Accepted
time: 0ms
memory: 17884kb
input:
100 2 4 4 3 2 4 0 1 3 2 0 0 3 0 4 0 2 3 1 0 3 4 2 1 3 4 2 0 2 2 2 4 2 2 0 3 3 2 4 2 2 0 3 4 4 2 0 0 1 2 2 1 4 3 0 0 3 0 0 2 4 0 0 0 0 2 4 1 4 3 1 4 4 2 3 0 3 1 0 0 1 0 0 3 0 3 2 1 2 3 0 2 2 3 1 1 4 0 3 4 3 0 0 4 3 0 1 2 4 3 1 1 4 1 0 1 3 4 2 1 4 0 3 2 4 0 3 1 3 3 3 0 3 3 1 4 4 3 0 3 3 1 4 0 0 3 1 1 ...
output:
NNYYN
result:
ok "NNYYN"
Test #147:
score: 0
Accepted
time: 1ms
memory: 22092kb
input:
100 1 0 0 2 4 2 4 1 0 2 0 2 3 3 1 4 2 0 4 1 4 3 3 0 3 2 4 4 3 2 2 3 1 2 1 2 1 2 2 0 3 4 1 1 3 1 4 2 3 3 1 4 4 0 2 1 0 0 0 4 0 2 4 4 3 3 2 4 4 1 0 1 3 0 2 0 3 1 2 4 0 4 1 0 2 0 0 1 4 2 1 1 0 3 4 3 4 4 4 0 3 2 2 4 1 4 1 3 2 4 2 4 0 0 3 1 4 2 1 3 1 0 0 0 0 4 1 1 0 4 4 0 3 4 3 4 3 4 4 2 0 1 3 3 0 3 1 4 ...
output:
YNYNN
result:
ok "YNYNN"
Test #148:
score: 0
Accepted
time: 14ms
memory: 38500kb
input:
100 0 2 2 4 2 1 3 0 1 0 1 1 4 4 1 0 2 1 1 0 3 0 4 3 4 4 0 4 2 1 0 3 4 3 3 4 1 4 0 3 1 3 3 4 0 1 2 3 4 4 2 0 3 2 2 1 1 3 1 0 4 0 4 3 4 4 4 1 3 3 1 0 4 1 2 3 0 2 3 2 1 3 2 2 1 4 3 3 1 1 0 2 1 4 2 2 1 3 0 0 4 1 1 3 1 0 2 4 0 4 0 0 3 3 0 4 1 0 0 4 2 4 3 2 3 3 4 3 1 0 4 2 3 2 2 3 0 3 4 2 0 2 2 3 4 0 1 2 ...
output:
YYYYY
result:
ok "YYYYY"
Test #149:
score: 0
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 4 0 3 2 4 1 0...
output:
YYYYY
result:
ok "YYYYY"
Test #152:
score: 0
Accepted
time: 1ms
memory: 28228kb
input:
195 3 4 0 4 2 0 2 2 2 3 0 4 0 0 3 2 4 4 4 2 2 4 3 0 0 1 1 1 2 4 1 0 1 0 4 3 1 2 2 4 2 3 1 1 3 3 4 4 2 1 1 1 4 0 1 1 1 1 4 0 3 4 3 0 3 3 0 4 1 2 3 1 4 0 4 1 2 1 1 4 2 3 3 2 3 0 4 2 3 4 1 2 0 3 0 3 2 4 0 1 0 0 0 4 1 1 3 2 4 0 0 3 2 4 4 0 3 0 2 1 1 3 2 0 3 4 2 1 0 1 4 1 2 4 1 4 2 3 1 3 0 0 2 4 3 0 1 1 ...
output:
YYYYY
result:
ok "YYYYY"
Test #153:
score: 0
Accepted
time: 2ms
memory: 24116kb
input:
40 2 4 2 2 2 4 1 2 1 4 3 1 0 4 4 1 4 3 4 4 1 1 2 0 0 3 0 1 0 4 0 0 1 4 0 3 2 4 4 4 2 4 2 2 2 4 1 2 1 4 3 1 0 4 4 1 4 3 4 4 1 1 2 0 0 3 0 1 0 4 0 0 1 4 0 3 2 4 4 4 1 3 1 1 1 3 0 1 0 3 2 0 4 3 3 0 3 2 3 3 0 0 1 4 4 2 4 0 4 3 4 4 0 3 4 2 1 3 3 3 4 1 4 4 4 1 3 4 3 1 0 3 2 1 1 3 1 0 1 1 3 3 4 2 2 0 2 3 2...
output:
YYYYY
result:
ok "YYYYY"
Test #154:
score: 0
Accepted
time: 4ms
memory: 45556kb
input:
692 3 2 4 4 0 1 2 2 2 1 3 1 3 3 3 2 4 3 1 0 1 1 4 4 2 2 4 1 0 2 4 0 3 1 3 3 1 0 3 3 4 4 1 1 0 4 2 3 2 1 3 4 4 1 0 1 0 1 2 4 0 4 2 3 1 4 4 2 1 0 1 2 3 3 4 0 3 3 3 0 1 2 3 4 3 1 2 2 2 1 2 0 3 3 1 2 4 2 4 4 2 0 3 1 4 0 4 0 1 4 4 2 4 2 1 4 1 0 1 2 2 3 0 0 3 1 1 1 0 2 1 3 4 1 4 4 4 0 1 4 2 4 4 1 1 4 1 1 ...
output:
YYNNY
result:
ok "YYNNY"
Test #155:
score: 0
Accepted
time: 8ms
memory: 53804kb
input:
1000 2 2 0 0 2 2 2 2 4 1 1 4 3 1 2 2 1 3 1 4 2 2 2 2 4 1 0 0 4 2 3 1 4 3 2 1 3 3 1 4 4 3 3 3 3 0 3 0 1 4 0 4 3 0 2 1 1 1 3 3 0 0 4 3 1 3 2 3 0 0 2 0 1 1 1 4 1 4 0 4 2 0 0 2 0 0 3 1 0 1 4 4 3 4 4 1 2 2 0 4 0 0 3 0 4 1 1 4 0 4 2 3 3 4 0 4 2 1 3 3 0 0 0 0 1 1 0 1 4 4 3 2 0 2 0 4 1 0 4 0 0 1 4 2 2 3 1 3...
output:
NNYNY
result:
ok "NNYNY"
Test #156:
score: 0
Accepted
time: 8ms
memory: 53628kb
input:
1000 4 2 2 2 0 3 4 2 3 1 4 0 1 3 2 4 4 1 1 2 0 1 1 4 4 1 3 0 3 1 1 1 3 2 3 0 2 0 4 0 4 1 4 2 2 0 0 2 3 3 0 4 2 1 2 4 2 0 4 4 0 4 0 0 2 0 4 1 4 1 4 0 2 2 4 0 0 2 1 1 0 2 4 0 1 3 2 2 2 1 3 2 4 1 3 0 0 3 0 2 3 4 2 0 0 3 4 1 0 3 0 0 1 1 4 3 4 1 2 1 1 4 1 4 1 2 4 3 2 0 3 4 3 3 1 1 1 2 4 4 4 4 3 1 2 1 3 3...
output:
NYNYY
result:
ok "NYNYY"
Test #157:
score: 0
Accepted
time: 7ms
memory: 53496kb
input:
1000 4 1 3 3 2 4 3 3 0 0 0 0 3 0 4 3 1 3 0 3 4 2 2 4 2 2 3 3 1 1 0 2 4 2 1 3 0 0 0 0 0 0 2 2 0 3 1 0 0 3 4 2 1 0 3 2 1 4 3 1 1 1 2 4 0 2 2 0 0 0 2 1 3 1 3 1 3 2 3 2 3 0 1 2 1 1 3 1 3 4 0 1 0 3 1 3 4 1 3 0 2 4 0 0 1 3 3 0 4 4 3 2 0 2 3 1 0 0 3 3 3 3 4 3 0 3 0 1 1 1 4 4 1 0 3 3 4 4 3 4 1 4 0 3 4 2 4 2...
output:
YYYYN
result:
ok "YYYYN"
Test #158:
score: 0
Accepted
time: 7ms
memory: 48836kb
input:
1000 4 3 4 3 0 0 4 2 0 2 0 1 0 0 1 4 4 2 4 3 2 3 1 0 3 1 1 3 4 3 1 1 1 4 0 3 4 1 0 0 3 3 3 0 2 2 1 2 0 2 4 2 4 4 2 3 1 3 3 3 0 1 3 2 0 4 1 1 4 4 0 0 3 0 3 2 0 2 2 3 1 2 4 4 2 3 1 1 2 3 3 4 1 0 4 1 1 1 2 4 2 1 2 3 1 1 3 2 0 2 3 3 1 0 3 3 2 0 3 0 3 1 3 2 0 4 2 3 0 0 0 1 4 2 0 4 4 4 2 4 0 1 3 1 4 3 0 1...
output:
NYNNN
result:
ok "NYNNN"
Test #159:
score: 0
Accepted
time: 7ms
memory: 50472kb
input:
1000 4 4 2 2 4 2 4 1 4 2 1 1 3 0 1 1 4 3 1 3 0 3 0 4 3 1 2 4 3 4 2 4 2 0 1 0 1 3 0 0 3 4 0 2 3 4 3 1 2 4 2 1 3 0 0 0 2 0 2 3 3 1 0 0 4 1 2 0 2 3 3 0 0 0 0 0 2 0 1 3 3 1 3 2 2 2 0 0 0 3 4 0 4 0 4 3 1 1 4 2 4 4 0 0 0 2 0 3 0 3 3 0 0 2 3 4 3 2 4 1 2 3 1 1 2 1 4 0 2 4 3 4 4 4 0 0 2 2 0 1 2 2 3 0 4 4 2 1...
output:
NNYNN
result:
ok "NNYNN"
Test #160:
score: 0
Accepted
time: 8ms
memory: 49444kb
input:
1000 2 0 0 3 4 0 3 4 2 0 4 2 0 0 0 4 2 3 2 0 4 1 0 3 1 4 0 0 3 3 2 1 1 3 3 4 0 1 4 1 0 2 1 1 0 0 2 2 1 2 2 2 0 2 4 2 3 2 1 3 3 3 1 2 4 0 4 2 2 4 4 4 0 1 0 3 1 2 0 1 1 1 4 2 2 0 3 2 4 0 3 0 0 4 0 1 3 0 4 3 2 0 0 0 4 0 4 0 2 2 3 4 2 1 4 2 2 1 3 0 3 2 1 0 0 0 2 2 3 2 3 2 3 4 0 2 2 3 0 4 3 0 2 4 3 2 1 4...
output:
YNNNN
result:
ok "YNNNN"
Test #161:
score: 0
Accepted
time: 8ms
memory: 53740kb
input:
1000 2 3 2 4 2 1 4 4 2 2 3 4 1 1 4 4 2 3 2 4 3 0 4 3 2 2 4 0 3 4 4 1 2 1 4 4 3 4 4 2 3 2 1 4 1 4 1 2 1 0 3 1 2 1 3 1 3 0 4 2 1 1 0 3 4 1 3 1 0 2 4 4 1 3 1 3 1 3 0 3 1 1 0 3 0 3 2 1 3 4 1 3 2 1 2 4 0 4 2 0 1 0 4 2 4 0 4 2 0 0 3 1 2 4 3 0 3 3 1 3 2 3 1 0 0 2 0 0 3 2 1 4 4 2 1 1 1 2 1 2 0 1 1 3 3 1 2 3...
output:
NNNYY
result:
ok "NNNYY"
Test #162:
score: 0
Accepted
time: 8ms
memory: 58472kb
input:
1000 4 3 3 1 2 1 4 4 0 1 4 3 0 4 1 2 4 1 0 0 4 1 1 0 2 0 3 4 4 1 0 4 3 3 3 4 3 0 0 3 4 0 1 3 1 2 2 4 4 3 3 1 0 1 0 3 1 4 3 1 4 3 0 4 3 3 3 1 2 2 1 1 2 2 2 0 3 2 4 0 3 1 1 2 3 2 4 2 3 3 3 3 2 1 3 3 1 3 0 3 3 0 1 0 0 2 3 0 1 1 4 3 2 1 3 3 4 2 3 4 1 1 0 1 1 1 0 0 3 1 4 1 0 0 4 1 0 2 4 2 4 2 4 1 1 0 2 3...
output:
YYYYY
result:
ok "YYYYY"
Test #163:
score: 0
Accepted
time: 2ms
memory: 42736kb
input:
389 2 2 0 3 3 1 0 1 3 4 2 3 0 4 4 3 2 3 2 1 1 1 4 3 0 4 2 4 2 2 4 0 1 3 2 2 2 2 1 3 4 2 1 4 2 4 3 4 2 3 2 1 1 3 2 2 4 3 2 0 4 2 2 1 0 3 4 2 1 4 3 0 0 2 0 1 4 2 4 1 4 3 2 0 0 4 2 0 1 1 2 2 1 3 1 0 4 3 2 0 3 0 2 3 4 1 3 4 1 0 3 0 4 0 4 1 4 4 2 3 3 0 4 2 0 1 1 3 3 1 3 1 1 4 0 1 4 3 1 1 4 4 1 4 4 0 2 3 ...
output:
YYYYY
result:
ok "YYYYY"
Test #164:
score: 0
Accepted
time: 1ms
memory: 32440kb
input:
233 2 2 1 2 0 4 2 4 2 4 0 0 2 2 1 2 1 0 4 1 0 1 3 4 1 0 3 0 4 2 0 4 4 2 2 4 3 0 2 4 2 1 4 4 4 2 1 0 4 4 1 2 3 1 4 4 1 2 2 0 0 3 3 4 3 1 0 3 2 3 2 3 2 0 1 4 3 1 4 2 0 3 4 2 1 4 4 3 3 3 1 2 3 4 2 3 1 3 3 0 1 3 0 0 0 1 1 3 1 0 3 3 3 0 2 3 1 4 2 0 4 1 4 4 1 3 4 0 2 4 2 4 2 0 4 2 1 2 0 2 4 3 2 0 1 2 2 4 ...
output:
YYYYY
result:
ok "YYYYY"
Test #165:
score: 0
Accepted
time: 1ms
memory: 28184kb
input:
181 0 2 3 3 2 1 4 4 4 4 4 4 0 1 4 3 3 0 2 4 3 1 3 4 3 3 4 4 4 4 3 1 2 2 0 1 0 2 0 2 4 0 1 1 3 3 1 4 0 2 4 2 4 3 3 4 1 0 2 0 3 3 4 0 0 4 4 3 4 2 3 4 1 0 1 1 3 2 0 2 2 2 0 0 4 0 2 0 2 1 0 1 2 1 4 4 0 1 0 2 0 3 2 4 3 0 0 2 0 1 2 3 4 3 3 0 4 3 4 4 0 4 2 1 1 3 2 4 1 0 3 1 4 4 1 1 4 2 4 0 1 0 2 2 0 0 4 2 ...
output:
YYYYY
result:
ok "YYYYY"
Test #166:
score: 0
Accepted
time: 0ms
memory: 13896kb
input:
26 1 0 4 0 0 1 1 2 4 3 3 2 4 4 1 4 0 3 2 2 3 3 3 0 3 2 2 1 0 1 1 2 2 3 0 4 4 3 0 0 2 0 1 4 3 3 4 4 4 1 4 3 1 0 4 0 0 1 1 2 4 3 3 2 4 4 1 4 0 3 2 2 3 3 3 0 3 2 2 1 0 1 1 2 2 3 0 4 4 3 0 0 2 0 1 4 3 3 4 4 4 1 4 3 3 2 1 2 2 3 3 4 1 0 0 4 1 1 3 1 2 0 4 4 0 0 0 2 0 4 4 3 2 3 3 4 4 0 2 1 1 0 2 2 4 2 3 1 0...
output:
NYNYN
result:
ok "NYNYN"
Test #167:
score: 0
Accepted
time: 6ms
memory: 51784kb
input:
870 1 4 1 2 2 3 0 2 4 4 2 0 2 3 3 1 2 4 4 2 3 3 4 1 0 3 4 0 1 2 1 1 1 4 1 0 0 1 0 3 2 0 0 0 1 0 4 3 4 4 3 2 0 0 3 0 2 2 2 1 4 0 3 3 2 0 0 1 0 0 1 4 4 2 3 0 0 3 2 3 4 2 2 3 2 1 3 0 1 0 1 4 0 3 0 3 0 4 4 4 1 0 3 2 1 4 2 4 0 4 1 2 1 1 0 4 3 3 4 1 1 1 1 1 2 2 2 2 1 0 3 1 3 4 4 0 1 4 2 2 3 0 3 4 1 3 4 1 ...
output:
NYNYN
result:
ok "NYNYN"
Test #168:
score: 0
Accepted
time: 3ms
memory: 42808kb
input:
714 1 3 0 4 0 4 3 2 1 2 0 0 2 3 3 1 3 3 0 1 2 1 4 2 3 3 4 3 1 0 0 4 3 4 4 0 0 4 3 0 0 4 3 1 2 2 4 4 0 3 0 4 4 1 4 0 1 1 1 2 4 1 4 0 3 3 3 2 0 0 3 1 4 2 1 2 3 0 4 3 3 2 3 4 0 3 4 4 2 0 2 3 1 1 2 0 2 4 4 3 2 0 4 3 1 4 3 2 2 2 3 2 3 1 3 4 2 4 3 0 0 4 4 1 1 4 3 3 1 1 4 4 1 3 3 3 1 1 1 2 1 4 0 3 1 2 0 0 ...
output:
NNNNY
result:
ok "NNNNY"
Test #169:
score: 0
Accepted
time: 1ms
memory: 28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output:
YYYYY
result:
ok "YYYYY"
Test #172:
score: 0
Accepted
time: 0ms
memory: 24132kb
input:
152 3 4 3 3 2 4 2 2 0 3 1 0 4 3 2 3 0 2 0 1 3 2 2 4 4 4 3 0 0 3 4 1 4 0 0 4 3 0 0 4 2 4 0 3 1 3 1 3 0 3 4 4 0 3 1 4 4 2 0 4 3 2 1 3 1 1 2 3 2 1 3 4 3 3 3 4 0 3 4 4 4 4 1 1 0 3 4 4 1 2 4 2 1 0 0 0 0 1 3 3 1 1 0 4 0 0 4 2 3 1 2 3 0 4 0 1 1 3 0 4 1 4 4 1 2 4 0 3 4 0 0 2 3 1 0 2 2 4 4 3 3 3 1 0 3 4 4 3 ...
output:
YYYNY
result:
ok "YYYNY"
Test #173:
score: 0
Accepted
time: 8ms
memory: 48912kb
input:
996 0 3 1 0 0 3 3 2 3 1 1 4 3 2 4 0 2 2 3 1 1 3 3 4 1 4 2 4 4 3 0 0 3 2 3 2 1 1 0 3 3 3 2 4 0 0 2 2 0 2 2 1 0 1 3 0 1 4 1 4 4 0 2 3 0 0 0 0 0 2 0 1 1 4 2 2 3 0 0 3 3 0 2 3 3 1 4 2 2 1 1 1 1 0 3 4 4 0 1 1 2 2 2 3 3 3 3 4 2 3 0 3 1 1 4 1 4 3 4 0 2 3 2 2 0 4 0 3 3 1 0 1 2 2 0 4 3 2 1 3 0 2 0 1 4 0 4 1 ...
output:
NNNNY
result:
ok "NNNNY"
Test #174:
score: 0
Accepted
time: 6ms
memory: 48712kb
input:
841 0 2 3 2 1 2 4 2 3 2 0 2 3 0 3 2 0 2 4 3 2 0 1 4 2 1 1 3 3 1 3 1 4 4 0 4 3 3 2 1 4 2 4 4 3 0 1 3 1 0 0 4 1 1 3 4 0 0 3 4 2 2 4 4 0 4 2 3 3 0 2 1 0 0 3 1 3 0 1 2 0 0 0 3 1 4 1 3 1 0 1 4 4 2 0 1 2 0 3 2 2 2 4 2 0 2 0 0 0 0 1 2 3 1 2 4 1 3 2 4 4 2 0 3 3 4 3 2 0 0 4 4 4 0 2 2 1 3 4 1 2 0 3 4 3 4 4 3 ...
output:
NNNNY
result:
ok "NNNNY"
Test #175:
score: 0
Accepted
time: 3ms
memory: 40952kb
input:
470 0 3 3 0 1 2 4 3 4 0 3 3 4 3 4 3 0 1 0 1 1 0 2 2 1 0 1 4 4 4 4 4 3 4 1 0 0 1 4 1 1 1 0 1 4 4 1 0 4 0 4 4 1 2 2 3 4 2 2 3 0 2 3 3 3 0 2 2 3 4 1 3 0 1 2 1 3 0 4 3 3 4 2 3 0 3 0 3 4 1 4 4 2 1 3 0 4 1 3 1 4 1 2 4 3 0 0 0 3 4 4 0 2 1 1 4 0 1 2 0 4 1 1 0 3 0 4 2 1 1 3 2 3 1 2 2 0 4 0 0 4 3 4 4 3 3 2 1 ...
output:
YYNYY
result:
ok "YYNYY"
Test #176:
score: 0
Accepted
time: 2ms
memory: 32412kb
input:
314 0 2 1 2 3 0 4 2 4 4 1 2 3 1 2 2 0 0 4 4 2 4 2 3 1 2 4 1 4 1 1 0 1 4 2 2 3 1 1 4 0 0 2 1 3 0 4 4 4 3 0 1 0 1 0 4 0 1 4 2 2 1 1 4 1 4 1 3 0 3 2 4 3 3 1 3 3 1 1 2 3 0 2 3 2 0 3 0 3 0 4 2 1 4 1 1 4 2 0 4 4 1 2 3 2 0 4 1 1 1 4 4 3 3 1 2 2 1 2 3 2 0 4 4 1 4 3 1 2 2 1 0 0 2 4 3 3 0 2 4 1 1 2 1 4 3 2 4 ...
output:
YNYYY
result:
ok "YNYYY"
Test #177:
score: 0
Accepted
time: 2ms
memory: 34656kb
input:
455 3 3 3 3 4 0 0 2 0 2 1 1 1 2 1 3 2 1 3 2 2 3 4 0 3 2 3 1 3 4 0 2 3 2 0 1 1 1 3 2 3 2 3 1 2 0 0 1 0 2 0 4 2 4 0 0 0 2 3 4 1 2 3 4 2 2 4 2 4 3 4 3 1 4 1 0 2 2 3 1 2 0 4 2 1 2 3 1 4 0 1 1 2 2 3 3 4 2 2 0 4 2 4 4 3 0 2 4 1 4 0 3 0 1 3 0 0 0 0 2 1 4 2 4 0 0 3 1 3 0 1 0 0 3 2 2 3 2 0 3 4 3 2 1 4 2 2 2 ...
output:
NYNYY
result:
ok "NYNYY"
Test #178:
score: 0
Accepted
time: 2ms
memory: 32328kb
input:
299 2 2 2 1 2 4 1 3 3 4 3 2 2 1 0 4 1 1 3 4 4 3 0 1 0 0 3 4 0 1 1 3 0 2 3 0 2 4 4 2 2 2 3 3 2 2 0 2 1 4 2 1 2 1 0 1 4 4 3 2 0 1 2 4 0 0 2 3 3 3 1 4 1 0 0 4 3 4 4 4 4 1 0 3 4 0 3 2 4 0 2 4 2 3 2 4 4 2 1 4 1 2 1 4 2 2 3 3 1 1 1 3 4 4 2 3 3 3 1 3 0 3 0 1 4 4 0 1 1 0 0 0 1 2 1 1 3 4 4 4 2 2 0 1 0 1 3 0 ...
output:
YYYYY
result:
ok "YYYYY"
Test #179:
score: 0
Accepted
time: 50ms
memory: 59792kb
input:
655 4 3 0 4 0 4 3 4 0 2 2 1 0 1 4 0 3 1 2 2 0 2 0 3 2 0 4 3 3 4 0 0 4 0 0 3 1 0 1 3 3 2 0 4 4 0 1 3 2 3 4 1 4 3 1 2 1 3 3 4 4 0 3 1 1 0 1 2 1 1 4 1 3 2 3 0 0 0 1 0 3 3 4 2 1 4 2 1 0 4 4 2 4 1 1 4 0 2 4 1 2 0 4 4 1 2 3 0 1 4 1 4 2 2 2 2 1 4 0 2 4 3 3 3 2 0 1 2 0 2 3 4 1 4 4 3 2 0 1 4 3 1 1 4 0 0 4 4 ...
output:
YYYYY
result:
ok "YYYYY"
Test #180:
score: 0
Accepted
time: 4ms
memory: 45384kb
input:
624 2 3 0 0 1 0 1 3 4 3 1 4 2 0 4 3 1 0 4 3 1 0 3 4 2 4 4 1 4 0 3 1 2 3 3 1 2 4 3 0 4 2 3 0 4 4 0 1 2 4 3 0 0 3 4 2 3 0 3 3 1 4 4 2 3 0 4 4 3 2 2 3 1 2 1 1 4 0 1 4 3 3 2 2 3 2 1 3 3 3 0 1 4 0 4 4 0 1 1 1 0 2 0 1 3 2 1 2 1 3 2 1 0 1 3 1 1 2 3 2 1 4 2 4 0 2 2 0 0 0 0 0 0 2 0 2 4 3 4 2 3 1 4 3 4 0 0 2 ...
output:
YYYNN
result:
ok "YYYNN"
Test #181:
score: 0
Accepted
time: 3ms
memory: 40524kb
input:
468 2 4 2 1 3 4 2 3 3 4 0 3 3 0 1 3 3 4 2 3 0 3 1 0 2 2 4 2 4 3 0 2 3 3 0 2 4 3 1 3 0 4 1 1 3 0 0 1 3 2 4 0 1 4 3 2 4 3 1 3 3 1 3 1 0 4 0 0 1 2 3 4 4 2 0 4 3 1 2 1 1 2 3 4 1 4 3 3 3 2 0 4 3 2 3 0 3 2 3 3 0 4 1 0 1 3 0 0 0 0 2 2 1 2 0 3 2 1 1 1 4 3 3 0 3 1 1 4 1 4 3 3 2 1 2 0 3 4 2 1 0 4 3 0 0 3 3 0 ...
output:
YNYYY
result:
ok "YNYYY"
Test #182:
score: 0
Accepted
time: 1ms
memory: 30280kb
input:
312 1 0 0 0 1 0 0 2 1 4 3 1 4 3 4 3 4 2 2 2 1 2 2 1 0 0 3 2 2 4 3 4 4 3 0 4 2 3 2 2 2 3 3 3 1 0 3 4 1 0 3 3 0 4 3 2 3 4 3 3 1 3 0 1 4 2 2 2 0 0 4 4 2 3 3 3 0 1 1 1 3 2 4 4 3 1 3 4 4 1 1 2 2 4 4 3 2 0 0 4 0 4 2 3 4 2 0 3 3 1 2 2 2 0 4 1 0 2 4 0 3 1 0 1 1 1 1 1 0 0 3 4 3 1 3 1 2 4 4 4 1 1 0 3 4 2 3 3 ...
output:
NYNYN
result:
ok "NYNYN"
Test #183:
score: 0
Accepted
time: 9ms
memory: 58552kb
input:
965 1 1 1 1 2 2 1 2 1 0 2 0 1 2 2 4 1 1 1 4 1 0 2 3 2 4 0 4 1 0 1 3 2 3 2 1 2 0 2 3 3 1 4 4 0 2 4 0 1 4 4 4 2 2 4 3 4 1 3 4 3 0 2 2 2 3 0 2 4 4 0 4 0 4 0 0 0 1 3 3 4 2 4 4 1 2 3 4 4 1 1 4 2 4 2 3 1 4 1 2 4 4 4 2 3 0 3 4 1 3 3 1 4 2 2 4 0 2 2 4 1 4 3 1 2 1 3 4 3 0 0 2 2 1 4 4 0 0 0 4 1 3 0 3 3 0 3 1 ...
output:
YNYNY
result:
ok "YNYNY"
Test #184:
score: 0
Accepted
time: 0ms
memory: 18012kb
input:
105 4 3 0 4 1 3 1 2 3 2 2 0 1 4 1 3 3 1 0 2 1 0 4 1 3 3 4 2 1 1 2 0 4 0 4 1 1 1 0 0 4 2 2 0 1 3 3 0 4 3 1 2 1 2 4 4 4 4 2 0 3 2 4 2 2 3 2 1 2 0 1 1 4 4 0 3 3 3 1 2 2 4 1 3 2 2 2 2 4 1 1 1 2 2 1 1 2 4 0 1 3 4 0 2 3 3 2 4 3 0 2 0 1 2 1 1 4 0 3 0 2 2 0 4 1 0 4 3 0 2 2 3 1 0 0 1 4 3 4 3 0 0 0 4 4 3 1 1 ...
output:
NNNYY
result:
ok "NNNYY"
Test #185:
score: 0
Accepted
time: 0ms
memory: 5712kb
input:
10 1 2 3 2 0 2 0 3 1 1 0 1 2 1 4 2 1 4 2 2 4 4 4 0 2 1 0 2 4 4 1 2 3 3 2 3 0 2 1 0 3 0 4 2 1 0 0 4 1 1 4 2 4 0 1 3 2 4 1 1 1 2 1 2 1 3 0 2 2 4 2 0 1 0 3 4 1 2 3 3 0 4 4 1 2 3 0 3 0 3 0 1 1 3 3 3 1 0 4 3
output:
YYYYY
result:
ok "YYYYY"
Test #186:
score: 0
Accepted
time: 0ms
memory: 5708kb
input:
10 4 1 0 4 2 3 3 3 4 1 0 3 0 4 3 4 1 1 1 1 0 3 3 1 4 3 1 0 0 0 0 1 4 2 1 1 4 0 2 1 1 0 3 1 0 2 0 3 3 4 4 0 2 0 1 4 2 0 0 2 0 3 0 3 3 2 4 1 1 1 2 0 3 1 3 2 3 0 4 4 2 0 1 2 4 1 2 2 2 2 3 2 4 2 1 0 3 4 3 2
output:
YYYYY
result:
ok "YYYYY"
Test #187:
score: 0
Accepted
time: 0ms
memory: 7756kb
input:
10 4 1 2 1 0 0 0 3 1 2 4 3 2 2 0 1 4 4 0 3 2 0 1 3 1 4 3 3 1 2 1 4 1 3 4 3 4 2 2 2 1 0 2 0 4 2 4 1 1 3 0 0 2 1 4 1 3 0 4 0 3 3 0 1 4 3 3 2 4 0 3 3 2 1 3 2 4 0 2 0 3 1 0 2 3 0 2 1 0 0 0 4 0 1 1 3 1 0 4 0
output:
YYYYY
result:
ok "YYYYY"
Test #188:
score: 0
Accepted
time: 0ms
memory: 5708kb
input:
10 2 0 0 3 3 4 4 1 3 0 1 4 1 3 2 4 3 1 1 2 4 0 0 0 4 4 0 3 1 0 3 0 3 1 0 3 4 3 4 3 1 0 2 1 4 3 4 4 4 2 1 0 1 4 3 2 4 2 1 1 1 2 3 1 4 2 2 1 0 0 0 3 3 1 3 2 1 2 3 0 0 2 3 0 1 0 0 0 4 3 2 3 0 1 0 4 2 4 1 1
output:
YYYYY
result:
ok "YYYYY"
Test #189:
score: 0
Accepted
time: 0ms
memory: 5660kb
input:
10 1 3 3 2 0 0 1 2 1 0 0 3 3 0 4 2 1 4 1 3 2 4 3 3 1 2 0 0 2 1 4 4 1 0 3 3 4 0 4 1 4 0 0 0 3 0 4 1 1 1 0 4 1 4 2 4 4 2 0 0 4 1 1 4 2 4 0 0 4 2 1 2 4 3 2 4 3 0 2 2 1 3 2 1 2 2 1 0 1 1 0 4 0 4 1 2 2 1 0 4
output:
YYYYY
result:
ok "YYYYY"
Test #190:
score: 0
Accepted
time: 0ms
memory: 7752kb
input:
10 2 3 1 1 4 2 4 2 2 1 4 3 1 1 0 1 1 2 4 1 3 3 0 0 2 3 3 1 1 3 0 1 3 2 2 1 0 2 4 2 3 1 4 4 0 1 3 4 4 1 2 3 0 1 1 1 0 2 4 1 2 1 3 0 3 4 4 2 3 2 3 2 1 3 3 4 1 0 0 2 3 2 1 1 2 1 3 0 0 4 2 0 2 3 4 1 4 3 1 4
output:
YYYYY
result:
ok "YYYYY"
Test #191:
score: 0
Accepted
time: 7ms
memory: 34380kb
input:
10 0 1 3 3 2 3 0 1 0 1 2 3 3 3 4 4 4 4 4 4 0 1 3 2 1 4 0 3 2 0 4 3 0 3 2 1 0 0 0 4 2 0 4 4 4 3 4 3 3 1 3 2 0 3 1 2 1 0 2 3 1 1 0 0 4 3 3 1 1 1 4 2 4 3 3 1 3 3 1 2 0 3 0 4 3 4 4 0 0 1 4 2 2 2 2 2 1 1 1 2
output:
YYYYY
result:
ok "YYYYY"
Test #192:
score: 0
Accepted
time: 4ms
memory: 9948kb
input:
1000 4 0 3 4 3 0 4 3 1 3 1 4 0 0 0 2 1 0 3 3 3 4 4 4 3 2 3 2 4 1 3 0 1 0 0 3 0 2 4 2 4 2 2 1 4 0 1 0 3 4 2 1 1 1 1 4 4 4 3 4 3 0 2 2 1 2 0 0 0 0 0 1 1 1 4 2 2 1 3 4 3 2 4 2 1 2 4 4 3 0 0 3 4 4 3 1 2 0 1 4 0 3 4 4 4 0 4 3 2 4 3 0 0 3 3 0 0 4 4 2 2 1 3 1 1 1 4 0 4 0 3 1 1 3 2 0 3 0 1 2 2 2 4 1 1 4 3 2...
output:
YYYYY
result:
ok "YYYYY"
Test #193:
score: 0
Accepted
time: 3ms
memory: 9032kb
input:
1000 3 3 1 2 2 3 1 4 3 1 0 4 3 4 2 2 0 3 2 2 0 2 2 0 4 3 3 4 4 2 2 4 3 4 4 4 2 2 4 0 0 0 1 0 2 2 1 1 1 3 3 0 0 2 1 2 0 4 0 2 1 4 0 2 3 2 4 4 1 4 1 1 3 0 0 4 0 3 4 3 0 3 3 2 2 2 4 1 1 4 2 2 4 1 1 2 0 4 2 3 4 4 2 3 0 4 2 2 4 2 3 2 0 2 3 0 2 4 2 0 2 0 3 2 4 2 3 2 2 4 4 2 0 4 2 4 3 4 0 3 1 4 1 4 1 3 2 0...
output:
YYYYY
result:
ok "YYYYY"
Test #194:
score: 0
Accepted
time: 3ms
memory: 8912kb
input:
1000 3 2 3 2 0 3 4 4 1 4 2 2 1 3 4 2 3 0 1 0 3 4 1 2 2 4 0 2 4 3 1 0 1 3 3 2 2 0 4 1 4 1 0 1 1 3 0 0 4 1 2 0 4 3 2 2 2 4 4 2 4 4 3 1 3 3 3 1 4 1 4 4 4 3 4 0 2 3 3 3 0 3 2 1 2 3 2 0 0 2 4 4 1 1 2 0 1 1 1 0 3 0 2 2 0 1 0 4 0 2 0 4 3 3 4 1 4 3 2 1 1 2 1 2 3 0 1 1 4 1 0 4 3 0 3 4 0 0 0 3 4 2 2 4 0 1 2 0...
output:
YYYYY
result:
ok "YYYYY"
Test #195:
score: 0
Accepted
time: 4ms
memory: 10028kb
input:
1000 1 2 1 3 1 0 2 0 3 3 2 2 3 0 0 4 2 3 2 0 3 4 0 4 1 1 1 2 0 1 2 2 3 4 2 3 2 2 1 2 3 1 0 0 4 0 0 3 1 0 3 3 4 3 1 4 3 1 3 0 3 4 1 2 3 2 1 0 3 1 0 3 2 3 4 0 0 1 1 4 3 2 1 1 2 0 4 4 4 0 0 0 1 0 0 4 3 4 4 4 3 0 4 4 2 0 4 3 0 0 0 3 2 2 0 1 2 2 3 2 2 1 1 4 0 2 2 2 2 3 2 4 1 3 0 4 2 3 4 3 0 3 0 4 0 4 3 0...
output:
YYYYY
result:
ok "YYYYY"
Test #196:
score: 0
Accepted
time: 4ms
memory: 8784kb
input:
1000 1 0 0 2 1 2 0 2 0 2 4 1 1 1 0 4 1 0 1 3 0 3 1 0 2 2 2 4 1 3 0 2 0 1 1 4 2 4 1 4 2 2 3 4 2 1 0 2 4 4 0 4 2 4 2 0 4 1 4 2 1 3 3 2 1 4 0 4 2 0 1 4 4 2 4 1 2 3 2 0 1 3 0 1 2 4 4 4 0 3 2 1 1 4 4 0 4 1 3 2 2 1 1 3 2 1 3 0 2 1 0 2 1 3 0 1 0 3 2 2 4 2 0 4 4 3 1 1 4 2 4 2 0 4 1 0 3 3 3 0 4 0 3 2 2 3 4 2...
output:
YYYYY
result:
ok "YYYYY"
Test #197:
score: 0
Accepted
time: 3ms
memory: 10464kb
input:
1000 0 1 2 4 3 0 2 3 2 2 4 2 4 3 2 0 1 3 0 2 3 2 4 1 3 3 0 1 1 4 0 3 2 4 2 3 3 3 1 2 3 1 3 0 2 1 4 0 3 0 4 3 3 1 0 1 0 3 4 4 3 3 3 3 2 4 4 0 1 2 3 4 1 3 4 2 4 4 4 0 1 0 3 0 4 0 2 3 3 4 1 0 2 4 0 3 2 0 4 3 2 2 3 2 4 4 0 0 3 2 0 4 0 2 3 3 4 2 3 0 4 0 0 1 4 1 4 4 2 1 0 3 4 0 2 2 0 4 2 2 3 0 3 1 3 0 3 3...
output:
YYYYY
result:
ok "YYYYY"
Test #198:
score: 0
Accepted
time: 4ms
memory: 10024kb
input:
1000 4 4 4 2 0 2 1 3 0 1 3 2 2 4 4 0 4 0 0 0 0 1 3 3 1 2 1 3 2 3 4 4 4 0 0 3 3 0 2 2 0 1 2 3 1 3 3 1 4 4 0 2 3 2 0 3 0 4 3 4 3 2 2 1 2 3 3 4 4 1 3 4 1 0 0 0 0 2 1 2 2 0 3 0 1 3 3 3 2 2 2 2 2 1 2 4 2 2 3 2 1 3 4 4 1 1 3 1 4 3 0 1 0 1 3 3 3 2 1 1 2 3 0 2 0 2 0 0 1 0 1 0 3 0 4 2 2 2 1 2 2 2 1 1 3 4 4 3...
output:
YYYYY
result:
ok "YYYYY"
Test #199:
score: 0
Accepted
time: 1ms
memory: 10416kb
input:
1000 4 4 1 2 4 4 4 2 2 1 0 2 3 1 1 1 3 2 3 0 3 0 1 4 0 3 2 2 2 4 0 3 0 4 0 2 3 2 2 0 0 2 3 0 4 4 4 0 3 2 1 2 1 4 4 4 1 3 4 3 4 3 4 1 1 3 2 0 0 4 3 4 0 4 4 1 2 0 4 2 1 1 1 0 0 2 0 4 1 0 4 3 1 4 3 3 3 0 2 0 0 4 1 4 2 0 3 1 4 1 4 1 2 3 4 2 0 1 2 1 3 1 3 3 0 3 1 4 3 2 3 0 4 1 4 3 2 3 1 2 1 4 2 1 2 3 0 0...
output:
YYYYY
result:
ok "YYYYY"
Test #200:
score: 0
Accepted
time: 4ms
memory: 9548kb
input:
1000 4 2 3 3 0 1 2 2 4 0 4 2 1 2 3 3 2 0 4 3 4 4 1 3 0 0 0 1 2 2 3 1 3 3 4 2 3 4 3 0 0 3 2 4 2 2 3 3 0 1 1 0 2 1 2 1 2 0 3 1 4 3 1 3 1 0 0 4 4 3 1 2 2 0 4 1 0 0 2 2 1 3 4 3 3 3 1 4 0 3 2 4 2 3 2 1 0 2 4 3 0 4 1 1 2 1 1 2 1 1 4 4 1 2 4 2 3 0 0 2 4 0 3 4 3 2 2 1 0 4 3 4 3 2 0 0 4 1 1 4 1 2 0 4 2 3 4 1...
output:
YYYYY
result:
ok "YYYYY"
Test #201:
score: 0
Accepted
time: 1ms
memory: 9756kb
input:
713 0 0 2 3 3 4 1 1 3 3 0 2 3 4 0 0 0 3 1 3 4 1 1 3 0 3 4 0 3 1 0 4 3 3 3 2 3 0 4 4 4 3 4 1 0 0 4 1 1 3 2 0 2 2 3 2 0 0 0 4 1 4 0 0 3 0 0 1 4 2 2 3 0 4 1 1 0 4 0 1 1 0 4 4 1 3 3 0 3 0 1 1 0 4 0 2 0 1 0 3 3 2 3 1 2 1 0 4 3 1 1 4 3 4 3 1 0 1 1 0 4 4 3 4 3 3 4 3 0 4 4 4 2 4 2 0 2 0 2 0 2 4 2 4 0 0 0 4 ...
output:
YYYYY
result:
ok "YYYYY"
Test #202:
score: 0
Accepted
time: 8ms
memory: 54444kb
input:
1000 1 4 0 0 3 2 3 1 2 1 3 3 4 3 4 2 1 2 4 3 2 4 1 0 0 0 1 0 0 2 3 4 4 2 0 3 2 3 1 3 2 4 0 0 1 4 4 3 4 2 3 3 2 0 3 3 3 3 2 3 1 0 4 4 0 0 0 4 1 3 2 3 3 2 1 4 2 4 0 1 0 2 1 3 0 4 0 4 4 4 3 3 3 4 2 4 0 1 2 0 4 0 4 3 4 2 4 0 1 3 4 1 0 4 0 4 2 4 0 3 1 0 3 1 2 4 4 4 3 4 3 2 4 2 0 1 2 2 0 0 1 2 0 4 3 3 3 3...
output:
YYYNY
result:
ok "YYYNY"
Test #203:
score: 0
Accepted
time: 7ms
memory: 54692kb
input:
1000 0 4 3 1 2 1 1 1 3 4 2 1 0 1 3 1 1 4 2 4 2 2 2 3 0 4 2 3 4 2 3 4 2 4 2 3 4 1 1 3 1 0 2 0 1 3 2 1 3 1 0 2 0 1 2 4 2 1 3 2 3 2 4 4 0 4 1 2 1 1 3 3 1 1 0 2 3 1 0 0 0 4 3 4 2 2 2 3 3 4 2 1 3 4 1 1 3 2 0 3 1 4 0 0 1 1 1 1 1 3 4 0 2 0 2 3 0 4 1 1 4 3 2 0 4 0 0 2 3 4 3 4 0 2 4 0 2 1 0 1 1 4 0 2 2 3 2 3...
output:
NYYYY
result:
ok "NYYYY"
Test #204:
score: 0
Accepted
time: 6ms
memory: 54444kb
input:
1000 4 4 4 0 0 1 0 3 2 2 4 0 2 2 3 4 2 4 2 3 3 2 3 0 4 3 1 1 0 1 1 2 0 0 1 0 0 1 4 2 3 4 4 1 0 0 2 0 3 0 1 0 1 1 4 2 1 3 0 2 4 1 4 1 3 1 4 3 1 1 3 1 3 1 1 4 4 2 2 4 2 2 0 0 0 2 1 0 2 3 1 0 4 0 3 3 3 4 2 4 2 2 2 0 1 4 3 2 3 2 1 1 1 0 1 4 2 2 1 0 1 3 1 2 1 1 2 2 1 1 2 3 2 1 2 2 2 2 0 1 3 4 3 1 1 1 2 0...
output:
NYYYY
result:
ok "NYYYY"
Test #205:
score: 0
Accepted
time: 8ms
memory: 53568kb
input:
1000 1 3 4 0 1 2 4 3 0 0 4 1 2 3 2 3 3 0 0 2 3 4 4 2 3 2 4 4 4 2 4 2 3 2 3 3 4 3 4 1 4 2 1 1 1 0 0 3 4 0 3 3 0 2 2 1 4 4 1 3 2 4 0 0 4 4 1 1 1 4 2 0 1 4 1 3 1 4 2 4 3 1 3 3 3 1 2 4 1 1 0 2 4 3 0 4 0 0 4 2 1 4 2 2 2 3 3 2 3 1 1 3 2 0 3 0 1 2 4 2 3 2 1 0 1 3 4 3 3 0 0 4 0 1 0 1 2 0 4 1 4 0 3 0 0 1 3 2...
output:
NYYYY
result:
ok "NYYYY"
Test #206:
score: 0
Accepted
time: 8ms
memory: 54224kb
input:
1000 4 4 2 2 0 4 2 0 0 3 3 4 2 2 0 4 2 3 4 1 1 1 0 0 1 2 1 1 2 3 3 4 2 4 4 4 4 1 4 2 3 0 2 1 1 0 3 4 3 4 0 4 4 2 1 4 4 1 4 2 0 1 0 3 4 3 3 0 1 1 2 0 3 3 0 2 2 3 1 3 1 3 2 1 3 2 4 1 0 1 3 2 0 3 4 0 2 1 3 0 3 2 0 3 1 0 0 1 3 4 4 1 2 4 0 2 2 2 0 4 0 3 3 4 2 3 4 0 3 3 3 1 4 1 4 4 0 1 2 1 0 0 4 1 2 3 0 2...
output:
YYYNY
result:
ok "YYYNY"
Test #207:
score: 0
Accepted
time: 8ms
memory: 53688kb
input:
1000 3 4 0 2 3 0 2 1 4 1 0 2 0 4 2 0 0 2 1 2 3 4 2 1 2 4 0 0 1 4 1 4 3 3 2 1 0 2 4 4 1 4 2 4 3 3 1 4 4 3 3 4 1 0 3 2 3 2 3 2 0 3 0 2 0 3 0 4 3 1 4 1 0 3 2 3 4 4 1 3 1 4 4 2 2 1 4 0 4 3 1 0 1 4 0 0 3 4 0 3 4 0 3 2 4 3 3 0 2 1 3 3 0 1 2 3 1 0 2 4 3 4 3 3 3 2 0 0 0 3 1 1 0 0 2 4 0 1 3 3 4 2 2 4 3 4 3 4...
output:
NYYYY
result:
ok "NYYYY"
Test #208:
score: 0
Accepted
time: 7ms
memory: 54836kb
input:
1000 1 0 1 3 4 3 3 3 4 4 2 4 2 0 1 3 1 2 0 1 0 2 0 4 4 4 4 3 3 1 1 0 3 0 0 0 2 1 3 1 1 1 3 4 1 3 0 3 4 3 3 3 1 4 2 1 4 2 3 1 2 2 4 1 1 2 3 4 2 0 1 3 4 3 3 0 1 4 2 3 3 0 4 0 1 1 2 2 1 1 0 3 3 2 1 0 1 1 0 2 3 0 0 1 3 1 0 2 4 3 0 2 0 2 4 0 4 1 3 1 1 3 4 4 3 0 1 3 0 2 4 2 1 2 4 0 0 0 2 3 4 1 1 3 3 4 1 0...
output:
YYNYY
result:
ok "YYNYY"
Test #209:
score: 0
Accepted
time: 7ms
memory: 53460kb
input:
1000 4 2 2 1 1 4 0 4 0 4 3 2 2 1 1 3 2 4 0 2 4 0 2 3 1 0 2 3 2 4 0 1 0 3 3 1 3 0 0 2 4 4 1 1 4 0 0 1 0 3 1 4 0 4 4 0 2 4 1 4 2 0 1 0 4 2 1 0 3 3 4 2 0 1 3 4 1 2 3 2 4 0 4 4 2 3 1 3 1 2 0 2 0 3 2 4 1 1 0 2 1 2 1 3 1 3 3 2 0 1 4 3 3 2 3 1 1 2 3 4 0 3 2 0 2 4 4 1 1 4 4 1 4 3 4 0 4 0 2 0 1 4 3 1 2 3 2 1...
output:
YYYNY
result:
ok "YYYNY"
Test #210:
score: 0
Accepted
time: 6ms
memory: 53568kb
input:
1000 2 3 4 1 1 1 0 3 1 0 2 0 3 0 4 3 1 2 3 4 2 2 0 1 1 2 4 1 1 0 0 0 3 0 0 4 3 3 0 2 2 0 1 4 0 0 3 3 0 2 3 3 2 1 3 3 1 3 1 2 1 3 1 1 3 1 1 4 3 4 2 4 3 0 3 3 2 1 3 0 0 3 4 3 0 3 3 4 1 0 4 4 1 4 3 3 3 2 3 3 0 2 3 0 2 2 3 1 3 0 0 1 0 1 4 2 4 2 1 1 0 1 2 2 2 1 4 1 3 2 3 4 0 4 2 4 4 4 0 3 3 2 4 3 0 1 4 3...
output:
YYNYY
result:
ok "YYNYY"
Test #211:
score: 0
Accepted
time: 8ms
memory: 53936kb
input:
1000 0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"NYYYY"
Test #214:
score: 0
Accepted
time: 7ms
memory: 54144kb
input:
1000 4 4 4 0 0 1 0 3 2 2 4 0 2 2 3 4 2 4 2 3 3 2 3 0 4 3 1 1 0 1 1 2 0 0 1 0 0 1 4 2 3 4 4 1 0 0 2 0 3 0 1 0 1 1 4 2 1 3 0 2 4 1 4 1 3 1 4 3 1 1 3 1 3 1 1 4 4 2 2 4 2 2 0 0 0 2 1 0 2 3 1 0 4 0 3 3 3 4 2 4 2 2 2 0 1 4 3 2 3 2 1 1 1 0 1 4 2 2 1 0 1 3 1 2 1 1 2 2 1 1 2 3 2 1 2 2 2 2 0 1 3 4 3 1 1 1 2 0...
output:
NYYYY
result:
ok "NYYYY"
Test #215:
score: 0
Accepted
time: 6ms
memory: 53468kb
input:
1000 1 3 4 0 1 2 4 3 0 0 4 1 2 3 2 3 3 0 0 2 3 4 4 2 3 2 4 4 4 2 4 2 3 2 3 3 4 3 4 1 4 2 1 1 1 0 0 3 4 0 3 3 0 2 2 1 4 4 1 3 2 4 0 0 4 4 1 1 1 4 2 0 1 4 1 3 1 4 2 4 3 1 3 3 3 1 2 4 1 1 0 2 4 3 0 4 0 0 4 2 1 4 2 2 2 3 3 2 3 1 1 3 2 0 3 0 1 2 4 2 3 2 1 0 1 3 4 3 3 0 0 4 0 1 0 1 2 0 4 1 4 0 3 0 0 1 3 2...
output:
NYYYY
result:
ok "NYYYY"
Test #216:
score: 0
Accepted
time: 7ms
memory: 54528kb
input:
1000 4 4 2 2 0 4 2 0 0 3 3 4 2 2 0 4 2 3 4 1 1 1 0 0 1 2 1 1 2 3 3 4 2 4 4 4 4 1 4 2 3 0 2 1 1 0 3 4 3 4 0 4 4 2 1 4 4 1 4 2 0 1 0 3 4 3 3 0 1 1 2 0 3 3 0 2 2 3 1 3 1 3 2 1 3 2 4 1 0 1 3 2 0 3 4 0 2 1 3 0 3 2 0 3 1 0 0 1 3 4 4 1 2 4 0 2 2 2 0 4 0 3 3 4 2 3 4 0 3 3 3 1 4 1 4 4 0 1 2 1 0 0 4 1 2 3 0 2...
output:
YYYNY
result:
ok "YYYNY"
Test #217:
score: 0
Accepted
time: 8ms
memory: 54444kb
input:
1000 2 4 2 3 2 2 2 0 4 1 0 1 2 1 1 4 3 1 0 4 0 4 2 4 0 0 1 3 2 1 2 3 4 1 4 4 1 1 0 2 4 2 1 1 4 1 2 2 3 4 3 3 3 0 1 3 2 1 1 4 3 4 3 4 2 3 3 0 0 3 2 1 3 1 1 3 4 1 3 2 2 0 2 0 2 1 3 4 1 0 3 0 2 0 4 1 2 3 3 3 1 4 2 3 0 4 1 1 1 1 1 2 0 4 2 2 2 3 0 4 4 3 4 3 4 3 1 1 3 4 1 4 3 4 1 0 1 1 3 1 0 2 2 1 1 2 1 0...
output:
YYYYN
result:
ok "YYYYN"
Test #218:
score: 0
Accepted
time: 6ms
memory: 53364kb
input:
1000 0 3 4 0 4 3 0 1 0 0 1 0 0 3 0 1 0 0 4 0 2 3 0 2 4 1 3 0 2 3 3 0 3 0 1 4 2 0 2 0 3 0 0 1 1 3 2 2 0 2 1 4 3 2 2 2 1 0 2 3 3 3 1 4 3 4 2 4 2 2 0 2 2 4 3 2 4 1 1 1 3 2 3 3 4 4 1 2 3 3 4 4 4 0 0 2 4 3 3 2 4 1 4 1 2 2 3 3 4 1 4 1 1 2 0 4 2 4 2 2 1 2 2 3 0 0 2 4 4 0 1 4 3 1 0 0 0 1 2 1 3 2 2 4 4 1 0 1...
output:
YYYNY
result:
ok "YYYNY"
Test #219:
score: 0
Accepted
time: 9ms
memory: 54912kb
input:
1000 3 4 2 2 1 1 0 2 4 4 2 3 1 3 3 0 1 3 3 3 1 0 4 0 4 0 3 3 2 4 4 1 3 3 4 3 2 3 2 2 4 2 1 3 3 0 2 0 1 2 1 4 2 3 1 1 4 0 4 1 4 1 3 1 0 2 0 0 3 0 2 1 0 0 1 3 1 3 2 0 0 4 0 3 3 4 4 1 4 3 1 2 1 3 2 0 1 0 2 1 3 0 0 4 1 2 1 3 1 0 2 1 2 2 3 3 1 2 0 0 4 2 4 3 3 4 0 1 2 1 0 2 2 1 0 0 1 4 2 3 1 1 2 1 3 1 1 2...
output:
YNYYY
result:
ok "YNYYY"
Test #220:
score: 0
Accepted
time: 6ms
memory: 53924kb
input:
1000 4 4 2 0 2 3 2 2 0 1 2 0 0 2 1 3 0 3 1 3 4 3 0 2 2 3 3 4 4 2 1 2 4 3 0 3 1 2 2 1 4 4 1 1 1 3 0 2 0 1 2 4 4 1 0 3 4 3 3 1 2 4 0 3 2 1 0 0 1 2 0 3 3 3 3 0 2 3 1 4 1 4 2 0 4 3 0 3 3 1 1 0 4 4 1 4 0 1 1 4 2 1 2 1 4 4 1 2 0 0 4 1 0 2 4 1 3 4 2 1 1 0 1 1 2 0 0 0 2 3 3 4 0 3 1 4 4 3 1 1 1 2 3 0 0 3 4 3...
output:
YYNYY
result:
ok "YYNYY"
Test #221:
score: 0
Accepted
time: 10ms
memory: 54524kb
input:
1000 0 4 1 1 4 4 4 0 3 2 1 4 4 2 0 2 3 3 0 1 0 2 2 1 4 3 0 0 2 0 0 2 4 0 3 3 4 1 1 2 4 3 1 3 3 1 4 4 2 2 4 0 3 4 1 4 4 2 0 1 3 2 4 1 3 1 2 3 1 0 1 3 4 1 4 0 2 1 4 4 4 2 4 4 4 0 0 3 3 3 2 1 4 3 0 1 1 3 1 3 3 4 2 4 3 3 3 0 2 4 4 3 2 4 1 0 0 4 1 3 0 3 1 0 2 3 2 2 2 4 2 3 3 3 0 3 2 1 0 1 1 3 1 4 3 4 3 4...
output:
YYYYN
result:
ok "YYYYN"
Test #222:
score: 0
Accepted
time: 9ms
memory: 54392kb
input:
1000 3 4 0 2 3 0 2 1 4 1 0 2 0 4 2 0 0 2 1 2 3 4 2 1 2 4 0 0 1 4 1 4 3 3 2 1 0 2 4 4 1 4 2 4 3 3 1 4 4 3 3 4 1 0 3 2 3 2 3 2 0 3 0 2 0 3 0 4 3 1 4 1 0 3 2 3 4 4 1 3 1 4 4 2 2 1 4 0 4 3 1 0 1 4 0 0 3 4 0 3 4 0 3 2 4 3 3 0 2 1 3 3 0 1 2 3 1 0 2 4 3 4 3 3 3 2 0 0 0 3 1 1 0 0 2 4 0 1 3 3 4 2 2 4 3 4 3 4...
output:
NYYYY
result:
ok "NYYYY"
Test #223:
score: 0
Accepted
time: 8ms
memory: 54476kb
input:
1000 1 0 1 3 4 3 3 3 4 4 2 4 2 0 1 3 1 2 0 1 0 2 0 4 4 4 4 3 3 1 1 0 3 0 0 0 2 1 3 1 1 1 3 4 1 3 0 3 4 3 3 3 1 4 2 1 4 2 3 1 2 2 4 1 1 2 3 4 2 0 1 3 4 3 3 0 1 4 2 3 3 0 4 0 1 1 2 2 1 1 0 3 3 2 1 0 1 1 0 2 3 0 0 1 3 1 0 2 4 3 0 2 0 2 4 0 4 1 3 1 1 3 4 4 3 0 1 3 0 2 4 2 1 2 4 0 0 0 2 3 4 1 1 3 3 4 1 0...
output:
YYNYY
result:
ok "YYNYY"
Test #224:
score: 0
Accepted
time: 8ms
memory: 53628kb
input:
1000 4 2 2 1 1 4 0 4 0 4 3 2 2 1 1 3 2 4 0 2 4 0 2 3 1 0 2 3 2 4 0 1 0 3 3 1 3 0 0 2 4 4 1 1 4 0 0 1 0 3 1 4 0 4 4 0 2 4 1 4 2 0 1 0 4 2 1 0 3 3 4 2 0 1 3 4 1 2 3 2 4 0 4 4 2 3 1 3 1 2 0 2 0 3 2 4 1 1 0 2 1 2 1 3 1 3 3 2 0 1 4 3 3 2 3 1 1 2 3 4 0 3 2 0 2 4 4 1 1 4 4 1 4 3 4 0 4 0 2 0 1 4 3 1 2 3 2 1...
output:
YYYNY
result:
ok "YYYNY"
Test #225:
score: 0
Accepted
time: 10ms
memory: 55244kb
input:
1000 2 3 4 1 1 1 0 3 1 0 2 0 3 0 4 3 1 2 3 4 2 2 0 1 1 2 4 1 1 0 0 0 3 0 0 4 3 3 0 2 2 0 1 4 0 0 3 3 0 2 3 3 2 1 3 3 1 3 1 2 1 3 1 1 3 1 1 4 3 4 2 4 3 0 3 3 2 1 3 0 0 3 4 3 0 3 3 4 1 0 4 4 1 4 3 3 3 2 3 3 0 2 3 0 2 2 3 1 3 0 0 1 0 1 4 2 4 2 1 1 0 1 2 2 2 1 4 1 3 2 3 4 0 4 2 4 4 4 0 3 3 2 4 3 0 1 4 3...
output:
YYNYY
result:
ok "YYNYY"
Test #226:
score: 0
Accepted
time: 7ms
memory: 54760kb
input:
1000 0 4 4 3 1 2 2 0 4 4 2 2 3 3 3 3 2 3 0 2 3 0 1 3 2 1 3 3 0 0 3 2 1 2 1 3 3 2 0 3 2 1 2 4 2 1 1 4 0 4 1 3 0 3 1 0 1 1 1 1 0 0 3 1 4 0 2 3 2 2 4 2 1 4 4 2 3 2 4 4 1 4 0 4 1 4 0 0 0 2 2 0 4 1 3 4 4 3 2 1 3 1 4 3 1 4 0 0 4 1 1 1 2 4 2 3 1 2 3 0 3 0 4 1 2 0 1 2 4 2 4 2 1 0 3 3 2 3 0 3 2 0 3 1 2 2 1 2...
output:
YYYYN
result:
ok "YYYYN"
Test #227:
score: 0
Accepted
time: 7ms
memory: 53012kb
input:
1000 3 2 2 0 4 2 3 2 1 1 1 1 4 2 4 1 3 4 0 0 3 3 4 3 0 4 1 1 1 4 0 4 1 0 2 0 4 1 3 4 4 2 0 2 0 3 3 4 2 0 0 4 2 2 2 0 1 1 2 4 3 4 3 0 3 1 2 4 4 1 2 0 0 3 4 3 0 3 1 4 0 1 4 0 1 0 3 1 4 0 3 0 2 2 4 1 0 1 2 1 3 4 1 2 1 4 0 1 0 0 3 3 3 4 1 4 1 4 2 0 2 0 1 1 2 2 2 0 1 2 0 1 3 2 0 4 4 3 1 3 4 0 1 0 2 4 4 4...
output:
NYYYY
result:
ok "NYYYY"
Test #228:
score: 0
Accepted
time: 6ms
memory: 54220kb
input:
1000 1 1 4 1 4 4 4 2 4 0 2 2 0 1 0 4 3 0 3 2 4 0 0 1 0 4 3 4 4 1 1 4 2 2 4 0 0 4 3 1 4 3 1 0 0 3 1 2 1 2 4 4 4 1 1 3 2 0 3 3 2 2 2 0 3 4 1 3 4 3 0 4 3 2 0 3 1 0 2 4 0 1 4 3 2 3 0 2 3 2 1 0 3 3 0 1 2 1 1 4 1 0 2 3 2 1 1 3 2 0 3 2 1 3 3 2 1 0 3 0 4 2 2 0 1 1 4 1 1 2 2 4 0 3 3 3 4 2 0 3 1 2 2 3 4 1 0 1...
output:
YNYYY
result:
ok "YNYYY"
Test #229:
score: 0
Accepted
time: 9ms
memory: 54160kb
input:
1000 3 3 0 4 4 0 0 3 0 4 1 0 2 0 4 2 4 0 3 2 3 1 3 4 3 0 2 1 4 2 3 2 2 1 2 0 1 3 4 3 0 1 2 2 3 3 0 1 3 4 2 3 4 4 1 3 0 4 4 0 3 0 1 0 4 0 4 1 3 3 3 0 2 0 3 2 3 1 2 3 1 4 0 2 0 1 1 1 3 4 0 4 1 4 1 3 2 4 0 4 3 0 1 1 1 1 0 3 2 1 2 2 2 0 4 3 0 4 3 4 0 1 3 4 2 2 1 3 4 3 1 2 3 1 0 4 3 1 4 3 2 1 3 2 1 2 3 2...
output:
YYNYY
result:
ok "YYNYY"
Test #230:
score: 0
Accepted
time: 8ms
memory: 54784kb
input:
1000 1 3 0 4 0 1 2 3 0 1 1 3 3 2 2 0 0 0 3 1 0 2 2 1 3 0 4 4 3 3 4 2 0 1 3 4 0 1 0 2 4 3 4 1 0 4 3 2 3 1 3 4 3 2 0 3 4 2 0 3 4 2 0 0 2 4 0 1 3 4 3 2 0 0 0 2 1 2 2 2 2 0 3 4 1 0 1 3 3 0 4 1 0 0 0 4 3 4 0 0 1 1 1 0 4 3 4 2 3 4 3 1 4 3 0 2 1 4 4 0 4 0 0 2 4 1 1 0 4 3 1 0 3 0 4 3 3 0 4 2 3 2 3 4 3 1 0 4...
output:
YYNYY
result:
ok "YYNYY"
Test #231:
score: 0
Accepted
time: 7ms
memory: 55372kb
input:
1000 1 2 4 1 3 0 3 3 2 1 1 1 2 0 3 3 3 4 3 3 2 2 4 0 4 0 2 4 2 0 0 4 4 2 1 4 0 4 0 0 3 2 3 3 1 4 2 3 0 4 0 4 1 2 3 2 3 2 4 0 2 3 4 0 3 0 4 0 1 1 4 3 3 4 4 2 0 0 3 0 2 3 4 3 4 2 3 1 1 1 4 1 1 4 1 3 1 1 4 0 2 4 1 4 1 0 0 3 2 1 4 1 0 0 2 0 2 4 1 0 3 0 2 1 0 1 0 0 0 1 3 0 1 1 4 3 4 3 3 0 2 4 2 0 4 2 1 2...
output:
YYNYY
result:
ok "YYNYY"
Extra Test:
score: 0
Extra Test Passed