cf/mirror

Piles With Stones

CF
1013A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 3
Input
5
1 2 3 4 5
2 1 4 3 5
Output
Yes
Sample 2of 3
Input
5
1 1 1 1 1
1 0 1 0 1
Output
Yes
Sample 3of 3
Input
3
2 3 9
1 7 9
Output
No
1013A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)