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;
#define ll long long
vector<int> smallest_sums(int N, vector<int> A, vector<int> B){
int i = 0;
int j = 0;
int sz = 0;
vector<int> ans;
while(sz<N and i<N and j<N){
ans.push_back(A[i] + B[j]);
sz++;
if(A[i] + B[j+1] < A[i+1] + B[j]){
j++;
}else 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... |