Submission #839526

#TimeUsernameProblemLanguageResultExecution timeMemory
839526model_codeA Plus B (IOI23_aplusb)C++17
60 / 100
530 ms35816 KiB
// incorrect/sol-birka0-wa.cpp #include "aplusb.h" #include <algorithm> using namespace std; vector<int> smallest_sums(int N, vector<int> A, vector<int> B) { int X = min(N, 3000); vector<int> C(X*X); for(int i=0; i<X; i++){ for(int j=0; j<X; j++) C[i*X+j] = A[i]+B[j]; } 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...