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<bits/stdc++.h>
using namespace std;
std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) {
vector<int> C(N*N);
int cnt = 0;
for(int i = 0; i < N; i++){
for(int j = 0; j < N; j++){
C[cnt]=A[i]+B[j];
cnt++;
}
}
sort(C.begin(), C.end());
vector<int> ans(N);
for(int i = 0; i < N; i++){
ans[i] = C[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... |