Submission #839535

#TimeUsernameProblemLanguageResultExecution timeMemory
839535model_codeA Plus B (IOI23_aplusb)C++17
60 / 100
1139 ms1566112 KiB
// correct/solution-subtask3.cpp #include "aplusb.h" #include <vector> #include <algorithm> std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) { std::vector<int> C(N*N); for(int i=0; i<N; i++){ for(int j=0; j<N; j++) C[i*N+j] = A[i]+B[j]; } std::sort(C.begin(),C.end()); std::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...