Submission #839539

#TimeUsernameProblemLanguageResultExecution timeMemory
839539model_codeA Plus B (IOI23_aplusb)C++17
10 / 100
1 ms212 KiB
// incorrect/solution-wa.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> ans(N); std::vector<int> vec(2*N-1); vec[0] = A[0] + B[0]; for(int i=1; i<N; i++) { vec[i] = A[i] + B[0]; vec[N+i] = A[0] + B[i]; } std::sort(vec.begin(),vec.end()); for(int i=0; i<N; i++) ans[i] = vec[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...