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 <queue>
#include <algorithm>
using namespace std;
vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
priority_queue<int, vector<int>, greater<int>> C;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N - i * 2; j++) {
C.push(A[j] + B[i]);
}
}
vector<int> result;
while (N--) {
result.push_back(C.top());
C.pop();
}
return result;
}
# | 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... |