# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
288869 | rama_pang | Dragon 2 (JOI17_dragon2) | C++14 | 1004 ms | 10872 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>
using namespace std;
using Point = complex<long long>;
long long Dot(Point a, Point b) {
return real(conj(a) * b);
}
long long Cross(Point a, Point b) {
return imag(conj(a) * b);
}
bool Clockwise(Point a, Point b, Point c) {
return Cross(b - a, c - a) > 0;
}
bool CounterClockwise(Point a, Point b, Point c) {
return Cross(b - a, c - a) < 0;
}
namespace std {
template<class T>
istream& operator>>(istream &is, complex<T> &inp) {
T a, b;
is >> a >> b;
inp = complex<T>(a, b);
return is;
}
bool operator<(Point p, Point q) {
return Cross(p, q) > 0;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |