# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1134674 | algoproclub | A Plus B (IOI23_aplusb) | C++20 | 0 ms | 0 KiB |
// UUID: fe634c6f-b73b-4f8e-b45d-df94ec75ea76
#include "aplusb.h"
#include <bits/stdc++.h>
using namespace std;
std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) {
vector<int> c;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
c.push_back(A[i] + B[j]);
}
}
ort(c.begin(), c.end());
c.resize(N);
return c;
}