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 <bits/stdc++.h>
using namespace std;
vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
vector<int> sums;
sums.push_back(A[0]+B[0]);
for (int i=1; i<N; i++) {
sums.push_back(A[0]+B[i]);
sums.push_back(B[0]+A[i]);
}
sort(sums.begin(), sums.end());
vector<int> ans=vector<int>(sums.begin(), sums.begin()+N);
return ans;
}
# | 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... |