| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 901528 | ngano_upat_na | A Plus B (IOI23_aplusb) | C++17 | 1 ms | 348 KiB |
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"
#include "aplusb.h"
using namespace std;
vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
vector<int> ans;
ans.push_back(A[0] + B[0]);
int x = 0, y = 0;
for (int i=0; i<N-1; i++) {
ans.push_back(min(A[x+1]+B[y],A[x]+B[y+1]));
if (ans[i+1] == A[x+1]+B[y]) {
x++;
}
else {
y++;
}
}
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... | ||||
