# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
135380 | imeimi2000 | Tri (CEOI09_tri) | C++17 | 518 ms | 34776 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 <iostream>
#include <algorithm>
#include <vector>
#define fs first
#define se second
using namespace std;
typedef long long llong;
typedef pair<int, int> pii;
int cmp(pii a, pii b) {
llong L = (llong)a.se * b.fs;
llong R = (llong)a.fs * b.se;
if (L < R) return -1;
if (L > R) return 1;
return 0;
}
pii operator-(pii a, pii b) {
return pii(a.fs - b.fs, a.se - b.se);
}
int ccw(pii a, pii b) {
llong ret = (llong)a.fs * b.se - (llong)a.se * b.fs;
if (ret < 0) return -1;
if (ret > 0) return 1;
return 0;
}
int ccw(pii a, pii b, pii c) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |