cf/mirror

Linguistics

CF
1685B2000· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
1 0 0 0
B
0 0 1 0
AB
1 1 0 1
ABAB
1 0 1 1
ABAAB
1 1 2 2
BAABBABBAA
1 1 2 3
ABABABBAABAB
2 3 5 4
AABAABBABAAABABBABBBABB
1 3 3 10
BBABABABABBBABABABABABABAABABA
Output
NO
YES
YES
YES
YES
YES
NO
YES
1685B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)