Submission #1000615

#TimeUsernameProblemLanguageResultExecution timeMemory
1000615irmuunHamburg Steak (JOI20_hamburg)C++17
2 / 100
70 ms11348 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n,k; cin>>n>>k; int l[n+5],d[n+5],r[n+5],u[n+5]; for(int i=1;i<=n;i++){ cin>>l[i]>>d[i]>>r[i]>>u[i]; } if(k==1){ int x=1e9,y=1e9; for(int i=1;i<=n;i++){ x=min(x,r[i]); y=min(y,u[i]); } cout<<x<<' '<<y; 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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...