Submission #1051594

#TimeUsernameProblemLanguageResultExecution timeMemory
1051594kachim2A Plus B (IOI23_aplusb)C++17
60 / 100
1081 ms1566608 KiB
#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(N*N); int cnt = 0; for(int i = 0; i < N; i++){ for(int j = 0; j < N; j++){ C[cnt]=A[i]+B[j]; cnt++; } } sort(C.begin(), C.end()); vector<int> ans(N); for(int i = 0; i < N; i++){ ans[i] = C[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...