# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1050170 |
2024-08-09T07:49:31 Z |
변재우(#11050) |
Hamburg Steak (JOI20_hamburg) |
C++17 |
|
78 ms |
6656 KB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int Nmax=200010;
int N, K, L[Nmax], D[Nmax], R[Nmax], U[Nmax], l, d, r, u;
signed main() {
ios_base::sync_with_stdio(0); cin.tie(0);
cin>>N>>K;
l=d=1, r=u=1000000000;
for(int i=1; i<=N; i++) {
cin>>L[i]>>D[i]>>R[i]>>U[i];
l=max(l, L[i]), r=min(r, R[i]), d=max(d, D[i]), u=min(u, U[i]);
}
cout<<l<<" "<<d<<"\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
2 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4444 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
2 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4444 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
45 ms |
6552 KB |
Output is correct |
6 |
Correct |
78 ms |
6656 KB |
Output is correct |
7 |
Correct |
51 ms |
6468 KB |
Output is correct |
8 |
Correct |
42 ms |
6480 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
4444 KB |
Unexpected end of file - int32 expected |
2 |
Halted |
0 ms |
0 KB |
- |