cf/mirror

Irreducible Anagrams

CF
1290B1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
aaaaa
3
1 1
2 4
5 5
Output
Yes
No
Yes
Sample 2of 2
Input
aabbbbbbc
6
1 2
2 4
2 2
1 9
5 7
3 5
Output
No
Yes
Yes
Yes
No
No
1290B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)