[problem](https://codeforces.net/contest/1651/problem/C)↵
↵
My solution : (https://codeforces.net/contest/1651/submission/271500008)↵
↵
MY idea : ↵
↵
Optimal strategy is to connect the extremes of the arrays to the other network. In doing so, we may connect the extremes of both arrays to each other.
↵
My solution : (https://codeforces.net/contest/1651/submission/271500008)↵
↵
MY idea : ↵
↵
Optimal strategy is to connect the extremes of the arrays to the other network. In doing so, we may connect the extremes of both arrays to each other.