This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// incorrect/solution-wa.cpp
#include "aplusb.h"
#include <vector>
#include <algorithm>
std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) {
std::vector<int> ans(N);
std::vector<int> vec(2*N-1);
vec[0] = A[0] + B[0];
for(int i=1; i<N; i++) {
vec[i] = A[i] + B[0];
vec[N+i] = A[0] + B[i];
}
std::sort(vec.begin(),vec.end());
for(int i=0; i<N; i++) ans[i] = vec[i];
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... |