// UUID: 8c11b2f1-4a04-45dd-ab8f-622fa543f5db
#include "aplusb.h"
#include <bits/stdc++.h>
using namespace std;
std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) {
vector<int> c;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
c.push_back(A[i] + B[j]);
}
}
sort(c.begin(), c.end());
c.resize(N);
return c;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |