Submission #425021

# Submission time Handle Problem Language Result Execution time Memory
425021 2021-06-12T12:31:47 Z MDario Hamburg Steak (JOI20_hamburg) C++11
0 / 100
4 ms 332 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define L first.first
#define R first.second
#define U second.first
#define D second.second
ll n;
pair<pair<ll, ll>, pair<ll, ll>> p[200001];
int main(){
    cin >> n;
    for(int i=0; i<n; i++){
        cin >> p[i].L >> p[i].D >> p[i].R >> p[i].U;
    }
    sort(p, p+n);
    ll l=p[0].D, r=p[0].U;
    for(int i=1; i<n; i++){
        r=min(r, p[i].U);
        l=max(l, p[i].D);
    }
    cout << p[n-1].L << " " << l;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 332 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -