Submission #1066973

#TimeUsernameProblemLanguageResultExecution timeMemory
1066973MunkhErdeneA Plus B (IOI23_aplusb)C++17
100 / 100
74 ms12232 KiB
#include "aplusb.h" #include<bits/stdc++.h> using namespace std; #define ll long long #define no cout<<"NO"<<endl #define yes cout<<"YES"<<endl const ll mod=998244353; vector<int> smallest_sums(int n, vector<int>arr1, vector<int>arr2){ vector<int> sum; for (int i = 0; i < n; i++) { for (int j = 0; j < n/(i+1); j++) { sum.push_back(arr1[i]+arr2[j]); } } sort(sum.begin(), sum.end()); vector<int> result(n); for (int i = 0; i < n; i++) { result[i] = sum[i]; } return result; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...