cf/mirror

Even Path

CF
1252C1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5 3
6 2 7 8 3
3 4 8 5 1
2 2 1 3
4 2 4 3
5 1 3 4
Output
YES
YES
NO
Sample 2of 2
Input
3 2
30 40 49
15 20 25
2 2 3 3
1 2 2 2
Output
NO
YES
1252C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)