# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
54867 | linkret | Printed Circuit Board (CEOI12_circuit) | C++14 | 99 ms | 2320 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
#define f first
#define s second
const int maxn = 1e5 + 10;
int n;
pii p[maxn];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cin >> n;
for(int i = 0; i < n; i++) {
cin >> p[i].f >> p[i].s;
}
for(int i = 0; i < 20; i++) {
if(i & 1)
sort(p, p + n);
else
sort(p, p + n, greater<pii>());
}
cout << 0 << endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |