답안 #492490

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
492490 2021-12-07T14:47:54 Z LittleCube Roads (CEOI20_roads) C++14
0 / 100
19 ms 1228 KB
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define F first
#define S second
using namespace std;

int N;
pii p[200005];
vector<pii> v;
signed main()
{
    cin >> N;
    for (int i = 1; i <= N; i++)
    {
        cin >> p[2 * i - 1].F >> p[2 * i - 1].S >> p[2 * i].F >> p[2 * i].S;
        assert(p[2 * i - 1].F == p[2 * i].F);
    }
    for (int i = 1; i <= N; i++)
        v.emplace_back(p[2 * i - 1]);
    sort(v.begin(), v.end());
    for (int i = 1; i < N; i++)
        cout << v[i - 1].F << " " << v[i - 1].S << " " << v[i].F << " " << v[i].S << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 460 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 2 ms 332 KB Output is correct
4 Failed 17 ms 1224 KB Condition failed: "!Cross(S[*pi], S[*pa])"
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 2 ms 332 KB Output is correct
4 Failed 19 ms 1228 KB Condition failed: "!Cross(S[*pi], S[*pa])"
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 2 ms 332 KB Output is correct
4 Failed 18 ms 1120 KB Condition failed: "!Cross(S[*pi], S[*pa])"
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 460 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 460 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -