# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
106642 | naoai | Printed Circuit Board (CEOI12_circuit) | C++14 | 126 ms | 11976 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define fin cin
#define fout cout
//ifstream fin("x.in"); ofstream fout("x.out");
typedef long long i64;
const int nmax = 1e5 + 5;
const double eps = 1e-7;
struct PCT {
int x, y;
} c[nmax + 1];
struct segm {
PCT A, B;
i64 d;
segm () {}
segm (PCT _A, PCT _B) {
A = _A, B = _B;
d = 1LL * (A.x + B.x) * (A.x + B.x) + 1LL * (A.y + B.y) * (A.y + B.y);
}
bool operator < (const segm &shp) const {
return d > shp.d;
}
bool operator == (const segm &shp) const {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |