Submission #534916

#TimeUsernameProblemLanguageResultExecution timeMemory
534916vectorRoads (CEOI20_roads)C++17
0 / 100
1 ms328 KiB
#include<bits/stdc++.h> #define SIZE 100010 using namespace std; typedef long long ll; ll N; pair<ll,ll>p[SIZE]; int main() { ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); cin>>N; for(int i=0;i<N;i++){ cin>>p[i<<1].first>>p[i<<1].second; cin>>p[i<<1|1].first>>p[i<<1|1].second; } sort(p,p+2*N); for(int i=1;i<2*N;i+=2)printf("%lld %lld %lld %lld\n",p[i].first,p[i].second,p[i+1].first,p[i+1].second); }
#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...