# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
15474 | myungwoo | 색종이 (kriii3_T) | C++14 | 1000 ms | 2688 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.
#pragma warning(disable:4996)
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <set>
using namespace std;
struct point {
double x, y, z;
point(){}
point(double x, double y, double z=1) : x(x), y(y), z(z) {}
double dot(const point& r) const { return x*r.x + y*r.y; }
double size() const { return sqrt(x*x + y*y); }
double angle() const { return atan2(y, x); }
point proj() const { return point(x/z, y/z); }
point operator - (const point& r) const { return point(x-r.x, y-r.y); }
point operator + (const point& r) const { return point(x+r.x, y+r.y); }
point operator * (const double& r) const { return point(x*r, y*r); }
point operator * (const point& r) const { return point(y*r.z - z*r.y, z*r.x - x*r.z, x*r.y - y*r.x); }
};
int n;
point v[200][3];
double r[200];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |