# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
447966 | Jasiekstrz | Geometrija (COCI21_geometrija) | C++17 | 175 ms | 564 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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... |