Submission #1027977

#TimeUsernameProblemLanguageResultExecution timeMemory
1027977JahonaliXA Plus B (IOI23_aplusb)C++17
10 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; vector<int> smallest_sums(int n, vector<int> a, vector<int> b) { vector<int> c = {a[0] + b[0]}; int i = 1, j = 1; while (i + j <= n) { if (a[i] + b[0] > b[j] + a[0]) c.emplace_back(b[j++] + a[0]); else c.emplace_back(a[i++] + b[0]); } return c; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...