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>
#include <vector>
using namespace std;
std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) {
vector <int> s;
for(int i = 0;i<N;i++)
{
for(int j =0;j<N/(i+1);j++)
{
s.push_back(A[i]+B[j]);
}
}
sort(s.begin(),s.end());
vector <int> answer;
for(int i = 0;i<N;i++)
{
answer.push_back(s[i]);
}
return answer;
}
# | 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... |