cf/mirror

Strange Function

CF
1334F2500· grandmaster3s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
11
4 1 3 3 7 8 7 9 10 7 11
3 5 0 -2 5 3 6 7 8 2 4
3
3 7 10
Output
YES
20
Sample 2of 2
Input
6
2 1 5 3 6 5
3 -9 0 16 22 -14
4
2 3 5 6
Output
NO
1334F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)