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;
vector<int> smallest_sums(int N, vector<int> A, vector<int> B){
vector<int> a;
for(int &i : A)
for(int &j : B){
int sum = i + j;
a.push_back(sum);
}
sort(a.begin(), a.end());
vector<int> ans;
for(int i = 0; i < N; ++i)
ans.push_back(a[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... |