Submission #240632

#TimeUsernameProblemLanguageResultExecution timeMemory
240632svenHamburg Steak (JOI20_hamburg)C++14
2 / 100
677 ms384 KiB
#include <bits/stdc++.h> using namespace std; struct Rectangle { int x1 , y1 , x2 , y2; }; int main() { int nbRectangles , K; cin >> nbRectangles >> K; Rectangle solActu = {1 , 1 , (int)1e9 , (int)1e9}; for (int i = 0 ; i < nbRectangles ; i++) { Rectangle nouv; cin >> nouv.x1>>nouv.y1>>nouv.x2>>nouv.y2; solActu = {max(solActu.x1 , nouv.x1) , max(solActu.y1 , nouv.y1) , min(solActu.x2 , nouv.x2) , min(solActu.y2,nouv.y2) }; } cout<<solActu.x1<<" "<<solActu.y1<<endl; }
#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...