Submission #1051959

#TimeUsernameProblemLanguageResultExecution timeMemory
1051959Szymon_PilipczukA Plus B (IOI23_aplusb)C++17
100 / 100
60 ms13244 KiB
#include "aplusb.h" #include <algorithm> #include <vector> using namespace std; std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) { vector <int> s; for(int i = 0;i<N;i++) { for(int j =0;j<N/(i+1);j++) { s.push_back(A[i]+B[j]); } } sort(s.begin(),s.end()); vector <int> answer; for(int i = 0;i<N;i++) { answer.push_back(s[i]); } return answer; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...