cf/mirror

Madoka and Formal Statement

CF
1717C1300· pupil1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1
Input
5
3
1 2 5
1 2 5
2
2 2
1 3
4
3 4 1 2
6 4 2 5
3
2 4 1
4 5 3
5
1 2 3 4 5
6 5 6 7 6
Output
YES
NO
NO
NO
YES
1717C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)