Submission #706517

# Submission time Handle Problem Language Result Execution time Memory
706517 2023-03-06T21:02:01 Z xuliu Self Study (JOI22_ho_t2) C++17
0 / 100
0 ms 212 KB
#include <bits/stdc++.h>

using namespace std;

#define ll long long 
#define debug if(0)

const int inf = 1e9 + 7;

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	// m = 1
	int n, m; cin>>n>>m;
	vector<int> a(n), b(n);
	int ans = inf;
	for(int i=0; i<n; i++) cin>>a[i];
	for(int i=0; i<m; i++) cin>>b[i];
	for(int i=0; i<n; i++) ans = min(ans, max(a[i], b[i]));
	cout<<ans<<"\n";
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -