Submission #1016535

#TimeUsernameProblemLanguageResultExecution timeMemory
1016535AriadnaA Plus B (IOI23_aplusb)C++17
10 / 100
1 ms348 KiB
#include <bits/stdc++.h> #define pb push_back using namespace std; vector<int> smallest_sums(int N, vector<int> A, vector<int> B) { priority_queue<int> pq; for (int i = 0; i < N; ++i) { for (int j = 0; j < N; ++j) { pq.push(A[i]+B[j]); } } vector<int> ans(N); for (int i = 0; i < N; ++i) { ans[i] = pq.top(); pq.pop(); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...