cf/mirror

Constructive Problem

CF
1819A1300· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3
1 2 1
4
0 2 2 0
4
3 2 0 2
1
0
Output
Yes
Yes
No
No
1819A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)