# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
653849 | haojiandan | Fences (JOI18_fences) | C++14 | 13 ms | 684 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.
// wygzgyw
#include <bits/stdc++.h>
using namespace std;
template <typename T> void read(T &t) {
t=0; char ch=getchar(); int f=1;
while (ch<'0'||ch>'9') { if (ch=='-') f=-1; ch=getchar(); }
do { (t*=10)+=ch-'0'; ch=getchar(); } while ('0'<=ch&&ch<='9'); t*=f;
}
template <typename T> void write(T t) {
if (t<0) { putchar('-'); write(-t); return; }
if (t>9) write(t/10);
putchar('0'+t%10);
}
template <typename T> void writeln(T t) { write(t); puts(""); }
#define MP make_pair
const double PIE=acos(-1.0);
const int maxn=220;
const double eps=1e-5;
int n; double S;
struct node {
double x,y;
void get() { read(x),read(y); }
friend node operator + (node A,node B) { return (node){A.x+B.x,A.y+B.y}; }
friend node operator - (node A,node B) { return (node){A.x-B.x,A.y-B.y}; }
friend double operator * (node A,node B) { return A.x*B.x+A.y*B.y; }
friend double operator ^ (node A,node B) { return A.x*B.y-A.y*B.x; }
friend node operator * (double a,node b) { return (node){b.x*a,b.y*a}; }
friend node operator * (node b,double a) { return (node){b.x*a,b.y*a}; }
};
struct seg {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |