This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <aplusb.h>
#include <algorithm>
using namespace std;
vector<int> smallest_sums(int N, vector<int> A, 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());
vector<int> results;
for (int i = 0; i < N; i++) {
results.push_back(C[i]);
}
return 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |