# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
287458 | Namnamseo | Tri (CEOI09_tri) | C++17 | 637 ms | 65540 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;
typedef long long ll;
typedef pair<int,int> pp;
void read(int& x){ scanf("%d",&x); }
template<typename T,typename... Args>
void read(T& a,Args&... b){ read(a); read(b...); }
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define x first
#define y second
vector<pp> kpt;
ll inf = 1LL << 60;
int kn, qn;
pp operator-(pp a, pp b){
return pp{a.first-b.first, a.second-b.second};
}
ll cross(pp a, pp b){
return b.y*1LL*a.x - b.x*1LL*a.y;
}
ll cross(pp a, pp b, pp c){ return cross(b-a, c-a); }
void in(){
int k;
read(k, qn); kpt.resize(k);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |