#include #include #include #include using namespace std; typedef pair P; int main() { int N; cin >> N; vector A(N); for (int i = 0; i < N; i++) cin >> A[i]; int M; cin >> M; vector B(M); for (int j = 0; j < M; j++) cin >> B[j]; sort(B.begin(), B.end(), greater()); vector

dp(1<