cf/mirror

Mainak and Interesting Sequence

CF
1726B1100· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
1 3
6 12
2 1
3 6
Output
Yes
3
Yes
1 3 2 2 3 1
No
Yes
2 2 2
1726B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)