제출 #1016604

#제출 시각아이디문제언어결과실행 시간메모리
1016604AriadnaA Plus B (IOI23_aplusb)C++17
0 / 100
1 ms600 KiB
#include <bits/stdc++.h> #define pb push_back using namespace std; vector<int> smallest_sums(int N, vector<int> A, vector<int> B) { vector<int> sums; for (int i = 0; i < sqrt(2*N+1); ++i) { for (int j = 0; j < sqrt(2*N+1); ++j) { sums.pb(A[i]+B[j]); } } sort(sums.begin(), sums.end()); vector<int> ans(N); for (int i = 0; i < N; ++i) ans[i] = sums[i]; 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...