Submission #1067165

#TimeUsernameProblemLanguageResultExecution timeMemory
1067165ChericMACA Plus B (IOI23_aplusb)C++17
60 / 100
1095 ms1051240 KiB
#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; j++) { C.push(A[i] + B[j]); } } vector<int> result; while (N--) { result.push_back(C.top()); C.pop(); } return result; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...