Submission #922740

#TimeUsernameProblemLanguageResultExecution timeMemory
922740SuPythonySelf Study (JOI22_ho_t2)C++17
10 / 100
176 ms11512 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n,m; cin>>n>>m; vector<ll> a(n), b(n); for (auto &i: a) cin>>i; for (auto &i: b) cin>>i; ll ans=1e18; for (int i=0; i<n; i++) { ans=min(ans,max(a[i],b[i])); } cout<<ans; return 0; }
#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...