Anya and the Mysterious String
1881G2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
512 8tedubcyyxopz2 2 51 4 8 22 1 71 3 5 401 9 11 31 10 10 92 4 102 10 1210 4ubnxwwgzjt2 4 102 10 101 6 10 82 7 711 3hntcxfxyhtu1 4 6 12 4 101 4 10 2113 2yxhlmzfhqctir1 5 9 31 8 13 152 3bp1 1 2 151 1 2 181 2 2 1000000000
Output
YESNONOYESNOYESYESYES
58%
1881G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)