QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#863527 | #8830. Breaking Bad | HuangHanSheng | AC ✓ | 776ms | 11684kb | C++20 | 895b | 2025-01-19 18:48:22 | 2025-01-19 18:48:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 5712kb
input:
2 0 4 4 0
output:
YNNYN
result:
ok "YNNYN"
Test #2:
score: 0
Accepted
time: 0ms
memory: 5716kb
input:
2 1 1 1 1
output:
NNYNN
result:
ok "NNYNN"
Test #3:
score: 0
Accepted
time: 0ms
memory: 5844kb
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: 5844kb
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: 5844kb
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: 5712kb
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: 5844kb
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: 5672kb
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: 1ms
memory: 5716kb
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: 5716kb
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: 5716kb
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: 1ms
memory: 7920kb
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: 5844kb
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: 5720kb
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: 766ms
memory: 11684kb
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: 768ms
memory: 11552kb
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: 768ms
memory: 11608kb
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: 769ms
memory: 11552kb
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: 762ms
memory: 11548kb
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: 766ms
memory: 11548kb
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: 767ms
memory: 11676kb
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: 767ms
memory: 11680kb
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: 764ms
memory: 11548kb
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: 766ms
memory: 11680kb
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: 768ms
memory: 11684kb
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: 764ms
memory: 11680kb
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: 768ms
memory: 11548kb
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: 766ms
memory: 11548kb
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: 766ms
memory: 11684kb
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: 762ms
memory: 11548kb
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: 762ms
memory: 11468kb
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: 764ms
memory: 11680kb
input:
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:
ok "YYYYY"
Test #35:
score: 0
Accepted
time: 764ms
memory: 11644kb
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: 767ms
memory: 11676kb
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: 770ms
memory: 11552kb
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: 254ms
memory: 11220kb
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: 133ms
memory: 11068kb
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: 50ms
memory: 10168kb
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: 7ms
memory: 6100kb
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: 2ms
memory: 5844kb
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: 617ms
memory: 11136kb
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: 56ms
memory: 6708kb
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: 12ms
memory: 6232kb
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: 49ms
memory: 10380kb
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: 292ms
memory: 10340kb
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: 166ms
memory: 10296kb
input:
461 3 0 2 0 1 3 0 0 4 3 0 3 0 2 4 4 4 3 0 3 0 4 2 1 4 1 0 3 0 2 3 1 0 1 3 4 3 1 1 2 3 3 0 1 4 1 1 4 0 3 3 1 1 0 4 4 2 1 4 0 1 2 0 2 4 0 2 0 4 2 1 3 2 2 3 2 3 4 4 3 1 3 2 1 1 2 3 0 3 0 0 1 4 3 3 4 3 0 4 3 4 1 3 3 0 1 0 1 4 4 4 0 1 1 3 3 2 2 2 4 2 3 2 0 3 4 0 4 2 3 1 2 2 0 3 2 4 2 1 0 0 0 2 2 4 4 1 4 ...
output:
YNYNY
result:
ok "YNYNY"
Test #49:
score: 0
Accepted
time: 281ms
memory: 11348kb
input:
601 3 2 0 3 4 1 2 1 0 0 4 2 4 3 3 2 1 0 3 2 0 2 4 2 3 1 1 1 0 4 4 0 2 4 1 2 2 2 0 1 0 3 3 2 3 4 0 0 4 2 0 0 4 1 0 3 0 2 2 1 4 1 3 2 4 2 4 4 0 2 3 0 1 3 3 0 1 0 1 2 4 4 3 1 4 1 2 1 4 0 1 1 0 1 0 0 4 4 2 2 4 0 1 3 2 4 4 3 3 1 0 1 3 4 2 3 0 1 1 3 2 3 1 4 2 0 0 0 1 3 1 1 2 0 1 0 0 0 4 0 3 1 2 0 1 4 1 3 ...
output:
YNYYY
result:
ok "YNYYY"
Test #50:
score: 0
Accepted
time: 154ms
memory: 11352kb
input:
445 3 2 1 1 1 0 1 4 2 3 1 0 3 0 1 2 2 1 2 3 4 1 3 2 3 3 4 0 3 0 1 2 2 4 2 0 4 3 1 2 0 2 2 2 0 4 4 3 4 1 2 0 2 3 4 2 2 0 2 1 2 1 4 0 0 0 1 3 2 0 3 2 3 3 0 0 4 0 1 4 2 4 3 3 2 1 0 2 2 0 1 2 3 3 2 4 2 4 3 3 4 3 1 0 4 1 3 4 0 2 0 4 3 0 4 3 1 2 3 2 4 3 2 2 4 4 3 2 4 0 2 3 2 0 2 2 2 4 0 3 4 3 3 2 4 1 1 0 ...
output:
YYNNY
result:
ok "YYNNY"
Test #51:
score: 0
Accepted
time: 269ms
memory: 10876kb
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: 14ms
memory: 6356kb
input:
134 0 2 3 1 2 0 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test #55:
score: 0
Accepted
time: 765ms
memory: 11512kb
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: 765ms
memory: 11548kb
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: 765ms
memory: 11544kb
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: 764ms
memory: 11600kb
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: 767ms
memory: 11680kb
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: 766ms
memory: 11548kb
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: 769ms
memory: 11608kb
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: 765ms
memory: 11680kb
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: 762ms
memory: 11544kb
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: 92ms
memory: 11024kb
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: 187ms
memory: 11220kb
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: 84ms
memory: 10080kb
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: 25ms
memory: 6484kb
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: 5840kb
input:
24 0 3 0 1 3 0 0 0 1 0 3 0 2 1 3 4 0 4 2 1 2 1 0 1 2 0 2 3 0 2 2 2 3 2 0 2 4 3 0 1 2 1 4 3 4 3 2 3 0 3 0 1 3 0 0 0 1 0 3 0 2 1 3 4 0 4 2 1 2 1 0 1 1 4 1 2 4 1 1 1 2 1 4 1 3 2 4 0 1 0 3 2 3 2 1 2 2 0 2 3 0 2 2 2 3 2 0 2 4 3 0 1 2 1 4 3 4 3 2 3 1 4 1 0 4 1 1 1 2 1 4 1 3 2 4 0 1 0 3 2 3 2 1 2 0 3 0 1 3...
output:
YNYNN
result:
ok "YNYNN"
Test #69:
score: 0
Accepted
time: 580ms
memory: 11160kb
input:
869 4 1 3 3 0 4 0 1 2 2 3 1 0 0 2 1 3 4 2 3 4 1 2 3 4 2 1 3 0 3 4 1 0 1 3 4 0 2 2 2 1 3 2 4 4 1 4 2 2 3 0 0 3 2 1 4 1 1 1 1 3 3 4 4 4 0 4 0 2 2 3 4 1 4 3 0 4 3 1 3 2 4 0 0 3 2 4 0 3 4 2 1 3 3 0 0 1 2 3 4 2 0 0 1 2 3 0 0 3 3 1 1 1 4 4 2 2 1 2 0 1 0 2 1 3 4 4 0 4 3 0 1 3 1 1 3 4 3 1 3 0 4 1 2 4 1 2 0 ...
output:
YYNYN
result:
ok "YYNYN"
Test #70:
score: 0
Accepted
time: 515ms
memory: 10828kb
input:
817 0 1 3 0 3 3 4 2 3 4 1 0 4 3 4 1 0 4 1 0 2 2 2 1 0 4 3 0 2 0 0 3 3 2 1 0 4 1 0 1 2 2 3 1 4 1 4 1 0 1 1 4 1 2 2 0 0 1 4 2 0 3 2 3 2 3 2 0 0 1 4 4 2 0 2 1 1 4 2 3 0 3 1 3 1 4 1 0 2 4 2 4 3 0 4 1 0 1 4 4 3 3 2 0 3 1 3 2 3 3 3 0 2 0 2 4 0 2 0 2 3 3 4 0 0 4 3 0 2 4 2 3 4 0 3 2 2 3 2 2 2 0 4 1 3 0 1 2 ...
output:
YYYYY
result:
ok "YYYYY"
Test #71:
score: 0
Accepted
time: 338ms
memory: 10352kb
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: 199ms
memory: 10656kb
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: 94ms
memory: 10992kb
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: 408ms
memory: 10560kb
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: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 1 0 0...
output:
NYNNN
result:
ok "NYNNN"
Test #78:
score: 0
Accepted
time: 766ms
memory: 11676kb
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: 765ms
memory: 11676kb
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: 767ms
memory: 11680kb
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: 767ms
memory: 11444kb
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: 764ms
memory: 11680kb
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: 766ms
memory: 11680kb
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: 776ms
memory: 11680kb
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: 76ms
memory: 10812kb
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: 22ms
memory: 10160kb
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: 5848kb
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: 339ms
memory: 10860kb
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: 199ms
memory: 9604kb
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: 324ms
memory: 11480kb
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: 189ms
memory: 11088kb
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: 84ms
memory: 9008kb
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: 750ms
memory: 11508kb
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: 765ms
memory: 11548kb
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: 762ms
memory: 11552kb
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: 766ms
memory: 11680kb
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: 766ms
memory: 11556kb
input:
1000 3 3 0 3 4 4 2 4 1 0 0 4 2 1 4 1 0 1 1 4 1 2 2 3 1 4 4 0 2 3 2 2 1 0 1 0 4 4 2 4 1 0 2 2 2 2 1 2 4 4 0 2 0 2 4 2 1 1 4 0 0 3 3 3 2 4 4 4 4 2 3 0 0 4 1 2 0 0 0 0 4 4 0 3 4 0 4 0 2 3 2 3 2 3 4 1 0 1 3 2 2 0 4 0 4 3 2 2 1 4 3 3 4 4 0 0 0 1 4 1 2 3 3 4 3 2 4 4 4 0 3 1 1 0 0 2 1 0 2 2 2 0 0 2 0 1 2 0...
output:
YYYYY
result:
ok "YYYYY"
Test #98:
score: 0
Accepted
time: 767ms
memory: 11552kb
input:
1000 1 1 4 0 4 4 2 4 3 1 4 3 3 2 3 4 0 1 2 3 0 1 2 1 2 1 0 2 3 2 0 3 2 2 2 3 0 2 4 2 3 3 1 2 4 3 3 4 4 4 4 1 4 4 0 2 3 4 4 1 0 4 4 2 4 3 0 2 4 0 0 0 1 4 2 0 4 1 1 0 0 1 1 4 2 4 0 2 2 0 3 3 1 4 2 1 4 2 4 3 1 1 4 2 3 1 4 1 4 1 0 0 2 3 1 4 3 0 4 4 4 1 3 4 3 4 4 4 1 4 0 1 0 0 3 0 3 1 0 1 3 4 0 3 2 1 0 1...
output:
NYYNN
result:
ok "NYYNN"
Test #99:
score: 0
Accepted
time: 766ms
memory: 11680kb
input:
1000 2 0 4 1 0 3 1 4 3 1 1 3 1 4 4 2 1 4 4 0 2 1 4 3 2 3 0 0 4 2 4 3 1 3 2 2 1 2 4 4 3 3 0 2 3 0 3 2 2 3 1 2 0 2 1 3 0 4 1 4 1 3 2 3 2 2 3 0 0 1 0 2 4 3 2 0 3 4 4 4 4 1 3 4 2 0 1 3 4 1 3 3 1 3 2 3 0 1 1 0 0 0 0 2 1 1 4 0 3 0 2 4 0 4 4 0 3 1 2 0 1 1 1 4 4 0 3 2 0 2 1 0 1 2 1 2 4 4 3 0 4 0 2 0 3 0 2 1...
output:
NNYNN
result:
ok "NNYNN"
Test #100:
score: 0
Accepted
time: 764ms
memory: 11680kb
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: 765ms
memory: 11684kb
input:
1000 1 0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YYYN"
Test #104:
score: 0
Accepted
time: 321ms
memory: 11512kb
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: 184ms
memory: 10464kb
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: 80ms
memory: 10668kb
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: 173ms
memory: 10376kb
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: 5844kb
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: 349ms
memory: 10396kb
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: 511ms
memory: 10816kb
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: 332ms
memory: 10800kb
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: 489ms
memory: 11124kb
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: 90ms
memory: 10784kb
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: 767ms
memory: 11548kb
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: 8ms
memory: 6100kb
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: 8ms
memory: 6100kb
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: 7ms
memory: 6100kb
input:
100 0 1 4 1 2 0 4 4 3 4 2 1 0 4 0 4 1 2 4 2 3 4 0 4 4 1 2 3 4 0 4 2 2 3 1 4 4 2 1 1 1 4 1 3 1 2 4 2 0 1 2 0 4 4 1 4 3 2 4 4 0 4 1 2 1 0 4 1 3 1 4 2 4 1 2 4 2 2 2 4 3 0 2 3 2 3 0 2 4 2 2 0 1 2 4 4 4 4 0 0 0 1 4 1 2 0 4 4 3 4 2 1 0 4 0 4 1 2 4 2 3 4 0 4 4 1 2 3 4 0 4 2 2 3 1 4 4 2 1 1 1 4 1 3 1 2 4 2 ...
output:
NYYYN
result:
ok "NYYYN"
Test #118:
score: 0
Accepted
time: 7ms
memory: 6016kb
input:
100 2 0 2 4 0 3 1 1 4 2 1 4 3 3 4 1 0 2 3 1 2 2 4 3 0 2 0 3 2 2 2 2 2 1 2 4 0 0 0 1 4 2 2 4 4 2 2 4 2 0 2 2 2 4 1 4 4 2 0 3 4 2 3 1 3 3 4 2 3 0 0 2 4 3 4 1 3 0 2 4 0 1 3 2 1 0 1 4 1 2 2 2 4 2 1 3 2 0 0 1 0 3 0 2 3 1 4 4 2 0 4 2 1 1 2 4 3 0 1 4 0 0 2 1 3 0 3 1 0 0 0 0 0 4 0 2 3 3 3 4 2 0 0 2 2 0 0 2 ...
output:
NNYNY
result:
ok "NNYNY"
Test #119:
score: 0
Accepted
time: 8ms
memory: 8124kb
input:
100 4 2 4 0 4 4 2 0 3 0 3 4 2 2 4 2 3 2 4 0 1 4 3 4 0 1 4 3 4 4 4 1 4 4 1 2 3 1 2 4 2 4 3 2 1 3 2 2 0 3 4 1 4 4 0 1 1 3 2 3 2 4 4 1 2 1 0 2 2 3 3 0 0 1 2 1 1 1 1 0 2 1 1 3 0 3 0 3 0 2 4 4 2 3 4 3 4 0 2 0 2 0 2 3 2 2 0 3 1 3 1 2 0 0 2 0 1 0 2 3 4 2 1 2 3 4 2 1 2 2 2 4 2 2 4 0 1 4 0 2 0 2 1 0 4 1 0 0 ...
output:
YNYYY
result:
ok "YNYYY"
Test #120:
score: 0
Accepted
time: 6ms
memory: 6060kb
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: 7ms
memory: 6100kb
input:
100 4 1 3 2 2 3 0 4 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124:
score: 0
Accepted
time: 3ms
memory: 5972kb
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: 5720kb
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: 1ms
memory: 5976kb
input:
56 2 1 1 4 0 3 3 3 0 0 2 0 4 0 4 2 0 4 2 4 0 3 3 0 0 4 2 2 0 3 2 4 0 3 0 0 4 0 2 3 3 2 0 3 1 2 4 2 3 2 4 0 2 4 3 4 3 2 2 0 1 4 4 4 1 1 3 1 0 1 0 3 1 0 3 0 1 4 4 1 1 0 3 3 1 4 3 0 1 4 1 1 0 1 3 4 4 3 1 4 2 3 0 3 4 3 0 1 3 0 4 0 0 4 4 2 3 1 1 1 3 3 0 3 2 3 2 0 3 2 0 2 3 1 1 3 3 2 0 0 3 1 0 2 3 1 3 3 2...
output:
YNYYN
result:
ok "YNYYN"
Test #127:
score: 0
Accepted
time: 7ms
memory: 6228kb
input:
100 4 3 4 2 3 2 0 4 0 2 0 2 0 1 4 3 2 4 0 1 4 3 3 1 0 4 1 2 1 2 1 4 2 4 4 3 2 0 4 2 1 4 2 0 4 4 0 4 0 0 1 2 1 0 0 1 0 0 1 1 4 2 3 1 0 3 2 0 1 1 3 0 2 0 0 3 2 2 1 2 1 2 0 0 1 0 3 0 1 4 0 4 2 4 4 0 0 0 2 4 2 1 2 0 1 0 3 2 3 0 3 0 3 4 2 1 0 2 3 4 2 1 1 4 3 2 4 0 4 0 4 2 0 2 2 1 0 3 2 0 4 2 0 3 2 2 3 2 ...
output:
NYNNN
result:
ok "NYNNN"
Test #128:
score: 0
Accepted
time: 3ms
memory: 5972kb
input:
49 0 4 3 4 0 3 1 4 4 0 0 1 3 1 3 4 1 0 1 1 1 2 4 3 3 3 0 0 1 4 1 1 1 0 3 4 1 1 2 1 4 4 4 1 3 1 0 3 3 2 1 0 1 2 0 3 1 1 2 2 3 0 3 0 1 3 2 3 3 3 4 1 0 0 0 2 2 3 1 3 3 3 2 0 1 3 3 4 3 1 1 1 3 0 3 2 0 0 3 2 1 2 3 1 4 2 2 3 3 4 1 4 1 2 4 3 4 4 4 0 2 1 1 1 3 3 4 2 4 4 4 3 1 2 4 4 0 4 2 2 2 4 1 4 3 1 1 4 3...
output:
NYNNN
result:
ok "NYNNN"
Test #129:
score: 0
Accepted
time: 7ms
memory: 5972kb
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: 2ms
memory: 5840kb
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: 4ms
memory: 5976kb
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: 1ms
memory: 5844kb
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: 5ms
mem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 ...
output:
YYYYY
result:
ok "YYYYY"
Test #136:
score: 0
Accepted
time: 8ms
memory: 6228kb
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: 7ms
memory: 6228kb
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: 7ms
memory: 6104kb
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: 8ms
memory: 6228kb
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: 8ms
memory: 9784kb
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: 8ms
memory: 6100kb
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: 7ms
memory: 8108kb
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: 1ms
memory: 5848kb
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: 8ms
memory: 6096kb
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: 7ms
memory: 6096kb
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: 6ms
memory: 6224kb
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: 8ms
memory: 10164kb
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: 9ms
memory: 10104kb
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
Accepted
time: 8ms
memory: 10116kb
input:
100 1 4 0 1 0 3 3 3 2 4 4 3 4 3 0 2 0 3 4 0 1 3 2 4 2 4 4 4 2 3 2 4 3 1 3 3 0 0 2 4 4 0 4 1 1 0 4 4 2 2 4 4 4 2 0 4 4 4 0 4 3 2 0 3 4 3 4 1 2 1 2 4 1 3 3 4 2 3 1 3 0 0 0 2 4 2 2 3 0 2 3 3 0 4 3 2 3 3 4 0 0 3 4 0 4 2 2 2 1 3 3 2 3 2 4 1 4 2 3 4 0 2 1 3 1 3 3 3 1 2 1 3 2 0 2 2 4 4 1 3 3 4 3 0 0 4 3 3 ...
output:
NNYNN
result:
ok "NNYNN"
Test #150:
score: 0
Accepted
time: 200ms
memory: 10700kb
input:
507 4 2 1 0 3 3 2 4 4 3 3 3 3 2 1 3 0 1 2 2 4 2 4 0 3 1 0 4 0 1 1 4 3 2 2 4 4 0 3 3 2 1 0 1 4 1 1 3 1 1 0 2 0 3 0 2 3 2 4 0 2 0 2 0 1 1 3 0 4 4 1 0 3 4 1 0 0 0 2 2 4 2 2 4 3 3 1 4 4 0 0 0 1 1 1 2 3 4 1 3 4 4 3 2 4 1 3 2 0 4 4 2 0 3 3 4 0 0 2 2 0 2 2 0 4 4 4 2 2 1 4 3 4 3 1 4 4 0 3 1 1 4 1 4 1 4 3 1 ...
output:
YYYNY
result:
ok "YYYNY"
Test #151:
score: 0
Accepted
time: 2ms
memory: 9872kb
input:
55 2 2 2 1 4 2 1 3 3 3 1 0 3 4 4 4 1 3 3 4 2 4 4 3 2 2 2 3 2 1 3 3 2 3 1 0 2 4 3 0 3 3 4 0 3 1 3 1 0 3 0 2 0 0 3 4 4 4 3 1 4 3 0 0 0 3 2 0 1 1 1 3 0 0 1 4 1 1 0 4 4 4 0 4 3 0 0 4 0 3 2 4 1 0 2 0 0 1 2 0 3 0 3 2 0 2 4 2 2 0 4 4 4 3 1 4 3 0 0 0 3 2 0 1 1 1 3 0 0 1 4 1 1 0 4 4 4 0 4 3 0 0 4 0 3 2 4 1 0...
output:
YYYYY
result:
ok "YYYYY"
Test #152:
score: 0
Accepted
time: 27ms
memory: 10316kb
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: 1ms
memory: 5844kb
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YNY
result:
ok "NNYNY"
Test #156:
score: 0
Accepted
time: 765ms
memory: 11544kb
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: 765ms
memory: 11680kb
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: 765ms
memory: 11552kb
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: 762ms
memory: 11512kb
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: 764ms
memory: 11604kb
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: 767ms
memory: 11552kb
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: 766ms
memory: 11504kb
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: 116ms
memory: 10612kb
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: 41ms
memory: 9868kb
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: 24ms
memory: 10316kb
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: 1ms
memory: 5716kb
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: 583ms
memory: 11036kb
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: 392ms
memory: 10952kb
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: 7ms
memory: 8160kb
input:
93 4 2 2 2 4 1 3 1 2 3 2 2 2 0 3 4 3 3 0 2 0 3 1 1 1 2 3 2 1 0 4 0 2 3 2 2 1 2 1 4 0 2 3 3 0 4 0 0 4 3 2 4 3 1 4 3 1 1 2 4 1 2 3 4 0 3 3 0 1 4 2 4 3 0 1 3 4 1 2 0 3 3 4 2 0 1 2 1 4 2 0 3 1 3 1 1 1 3 0 2 0 1 2 1 1 1 4 2 3 2 2 4 1 4 2 0 0 0 1 2 1 0 4 3 4 1 2 1 1 0 1 0 3 4 1 2 2 4 3 4 4 3 2 1 3 2 0 3 2...
output:
YYYYY
result:
ok "YYYYY"
Test #170:
score: 0
Accepted
time: 20ms
memory: 8412kb
input:
167 2 0 1 4 3 0 1 1 2 0 3 0 3 1 3 0 0 2 1 2 4 3 4 1 3 0 4 3 4 3 1 0 3 2 4 2 2 2 4 1 0 2 4 3 4 3 1 0 2 1 3 3 4 0 0 1 3 1 2 3 4 0 1 2 3 4 2 3 2 4 4 1 0 0 4 1 1 4 0 3 4 2 3 1 0 2 0 2 2 2 3 1 1 4 2 2 3 4 2 2 4 2 2 2 3 1 0 2 4 1 4 2 4 3 2 0 1 1 4 1 0 1 3 4 4 4 0 3 2 3 3 2 2 4 0 2 4 2 1 3 3 1 2 1 2 1 3 0 ...
output:
NYNNN
result:
ok "NYNNN"
Test #171:
score: 0
Accepted
time: 69ms
memory: 7000kb
input:
308 1 0 2 3 2 4 4 3 0 4 4 2 0 3 4 4 0 3 2 0 3 0 2 4 3 2 1 4 0 3 2 4 4 1 4 4 0 2 4 2 1 4 4 1 0 3 4 0 1 1 4 4 0 0 3 0 2 1 4 0 4 1 3 3 2 3 0 2 3 1 3 4 1 3 1 3 1 4 4 1 0 4 2 0 0 2 0 0 3 4 2 2 3 4 2 0 1 1 3 1 2 4 0 4 3 4 0 0 1 0 1 0 3 3 4 1 1 3 1 4 0 3 4 2 4 0 1 1 3 0 3 3 2 3 0 1 0 3 3 1 3 4 4 2 0 2 0 1 ...
output:
YYYYY
result:
ok "YYYYY"
Test #172:
score: 0
Accepted
time: 18ms
memory: 10124kb
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: 760ms
memory: 11664kb
input:
996 0 3 1 0 0 3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"
Test #176:
score: 0
Accepted
time: 72ms
memory: 6868kb
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: 160ms
memory: 10324kb
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: 66ms
memory: 6872kb
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: 335ms
memory: 10108kb
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: 299ms
memory: 10064kb
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: 170ms
memory: 10024kb
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: 71ms
memory: 10260kb
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: 716ms
memory: 11412kb
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: 9ms
memory: 6100kb
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: 1ms
memory: 5840kb
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: 5840kb
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: 5788kb
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: 5844kb
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: 1ms
memory: 5700kb
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: 1ms
memory: 5808kb
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: 0ms
memory: 5844kb
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: 766ms
memory: 11680kb
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: 763ms
memory: 11680kb
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: 767ms
memory: 11552kb
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: 768ms
memory: 11680kb
input:
1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
ok "YYYYY"
Test #198:
score: 0
Accepted
time: 759ms
memory: 11548kb
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: 767ms
memory: 11552kb
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: 764ms
memory: 11556kb
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: 392ms
memory: 10424kb
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: 765ms
memory: 11632kb
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: 768ms
memory: 11480kb
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: 766ms
memory: 11556kb
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: 766ms
memory: 11548kb
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: 764ms
memory: 11680kb
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: 766ms
memory: 11548kb
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: 765ms
memory: 11680kb
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: 764ms
memory: 11552kb
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: 765ms
memory: 11552kb
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: 765ms
memory: 11676kb
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 #212:
score: 0
Accepted
time: 769ms
memory: 11548kb
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 #213:
score: 0
Accepted
time: 766ms
memory: 11552kb
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 #214:
score: 0
Accepted
time: 764ms
memory: 11676kb
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: 762ms
memory: 11552kb
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: 763ms
memory: 11676kb
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: 764ms
memory: 11680kb
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: 765ms
memory: 11680kb
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: 768ms
memory: 11684kb
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: 765ms
memory: 11680kb
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: 768ms
memory: 11680kb
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: 765ms
memory: 11512kb
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: 764ms
memory: 11552kb
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: 767ms
memory: 11552kb
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: 766ms
memory: 11680kb
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: 763ms
memory: 11680kb
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: 764ms
memory: 11676kb
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: 765ms
memory: 11548kb
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: 766ms
memory: 11548kb
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: 764ms
memory: 11684kb
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: 773ms
memory: 11556kb
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