Submission #534081

#TimeUsernameProblemLanguageResultExecution timeMemory
534081Cookie197Self Study (JOI22_ho_t2)C++14
10 / 100
70 ms5912 KiB
#include<iostream> #include<vector> #include<algorithm> using namespace std; #define ll long long #define pii pair<ll,ll> #define mp make_pair #define endl "\n" #define out(x) cout << #x << " = " << x << endl #define outp(x) cout << #x << ".first = " << x.first << " " << #x << ".second = " << x.second << endl #pragma GCC optimize("Ofast") ll n,m; ll a[300005],b[300005]; signed main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n>>m; for (int i=1;i<=n;i++) cin>>a[i]; for (int i=1;i<=n;i++) cin>>b[i]; ll ans = 1e18; for (int i=1;i<=n;i++) ans = min(ans, max(a[i],b[i])); cout<<ans<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...