#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N, M, ans = 0; cin >> N >> M; vector A(N), B(N), sm(N + 1); for(int i=0; i> A[i]; for(int i=0; i> B[i]; for(int i=0; i