Submission #640722

#TimeUsernameProblemLanguageResultExecution timeMemory
640722ck_platypusSelf Study (JOI22_ho_t2)C++14
10 / 100
72 ms5068 KiB
#include <iostream> #include <string> #include <cmath> #include <vector> #include <algorithm> #include <utility> #include <bitset> #include <climits> #include <set> #include <map> #include <iomanip> #include <queue> #include <cstring> #include <fstream> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define pll pair<ll, ll> #define pii pair<int, int> #define f first #define s second #define inf 1000000000000000 int main(){ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); ll n, m; cin >> n >> m; ll a[n], b[n], ans=inf; for(int i=0;i<n;i++) cin >> a[i]; for(int i=0;i<n;i++) cin >> b[i]; for(int i=0;i<n;i++) ans=min(max(a[i], b[i]), ans); cout << ans << endl; 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...