# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
706578 | 2023-03-07T05:24:47 Z | guagua0407 | Roads (CEOI20_roads) | C++17 | 1 ms | 340 KB |
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int,int> #define f first #define s second #define all(x) x.begin(),x.end() #define _ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); void setIO(string s) { freopen((s + ".in").c_str(), "r", stdin); freopen((s + ".out").c_str(), "w", stdout); } #define pll pair<ll,ll> int main() {_ //setIO("wayne"); int n; cin>>n; pair<pll,pll> num[n]; for(int i=0;i<n;i++){ int a,b,c,d; cin>>a>>b>>c>>d; num[i]={{a,b},{c,d}}; if(num[i].f>num[i].s) swap(num[i].f,num[i].s); } sort(num,num+n); for(int i=0;i<n-1;i++){ cout<<num[i].f.f<<' '<<num[i].f.s<<' '<<num[i+1].s.f<<' '<<num[i+1].s.s<<'\n'; } return 0; } //maybe its multiset not set
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Failed | 0 ms | 212 KB | Condition failed: "pf == Sline.end() || !Cross(S[*pi], S[*pf])" |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Failed | 1 ms | 340 KB | Condition failed: "!Cross(S[*pi], S[*pa])" |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Failed | 1 ms | 340 KB | Condition failed: "!Cross(S[*pi], S[*pa])" |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Failed | 1 ms | 340 KB | Condition failed: "!Cross(S[*pi], S[*pa])" |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Failed | 0 ms | 212 KB | Condition failed: "pf == Sline.end() || !Cross(S[*pi], S[*pf])" |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Failed | 0 ms | 212 KB | Condition failed: "pf == Sline.end() || !Cross(S[*pi], S[*pf])" |
2 | Halted | 0 ms | 0 KB | - |