#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin >> N >> M; long long sumc = 0; vector A(N),B(M),C(N); for(auto &a : A) cin >> a; for(auto &b : B) cin >> b; for(auto &c : C) cin >> c,sumc += c; map> S; long long now = A.at(0); S[0].push_back(0); for(int i=1; i