# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
447966 | Jasiekstrz | Geometrija (COCI21_geometrija) | C++17 | 175 ms | 564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define fi first
#define se second
using namespace std;
const int N=1e3;
struct Point
{
long long x,y;
};
Point operator-(Point a,Point b)
{
return {a.x-b.x,a.y-b.y};
}
long long operator*(Point a,Point b)
{
return a.x*b.y-a.y*b.x;
}
int sgn(long long x)
{
return (x<0 ? -1:1);
}
int ilo(Point a,Point b,Point c)
{
return sgn((a-c)*(b-c));
}
bool cross(Point a,Point b,Point c,Point d)
{
return (ilo(c,b,a)!=ilo(d,b,a) && ilo(a,d,c)!=ilo(b,d,c));
}
bool inside(Point p,Point a,Point b,Point c)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |