Submission #1006920

#TimeUsernameProblemLanguageResultExecution timeMemory
1006920NexusA Plus B (IOI23_aplusb)C++17
10 / 100
1 ms348 KiB
#include <bits/stdc++.h> #include "aplusb.h" #define ll long long using namespace std; const ll N=2e5+9,M=2e18+9,mod=998244353; vector<int>smallest_sums(int n,vector<int>a,vector<int>b) { ll x=n; vector<int>ans; for(ll i=0;i<n;++i) { if(i==n-1) { for(ll j=0;j<n;++j)if(x)ans.push_back(a[i]+b[j]),--x; break; } for(ll j=0;j<n;++j) { if(!x || a[i]+b[j]>a[i+1]+b[0])break; --x,ans.push_back(a[i]+b[j]); } if(!x)break; } 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...