Submission #791383

# Submission time Handle Problem Language Result Execution time Memory
791383 2023-07-24T04:56:47 Z ttamx Roads (CEOI20_roads) C++14
0 / 100
1 ms 316 KB
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

const int N=1e5+5;

int n;
vector<tuple<ll,ll,ll,ll>> vec;

int main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    cin >> n;
    for(int i=1;i<=n;i++){
        ll a,b,c,d;
        cin >> a >> b >> c >> d;
        if(b>d)swap(a,d),swap(b,d);
        vec.emplace_back(a,b,c,d);
    }
    sort(vec.begin(),vec.end());
    for(int i=1;i<n;i++){
        cout << get<2>(vec[i-1]) << " " << get<3>(vec[i-1]) << " " << get<0>(vec[i]) << " " << get<1>(vec[i]) << "\n";
    }
}
# Verdict Execution time Memory Grader output
1 Failed 1 ms 212 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 0 ms 212 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 1 ms 316 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 0 ms 212 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 0 ms 212 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 1 ms 212 KB Condition failed: "iA != P2I.end()"
2 Halted 0 ms 0 KB -