# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1044108 | vjudge1 | Svjetlost (COI18_svjetlost) | C++17 | 1 ms | 348 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;
#define int long long
#define point pair<int,int>
#define x first
#define y second
#define double long double
double const pi=3.141592653589793;
double const oe=180;
double angle(point p1,point p2){
int deltaY = p2.y - p1.y;
int deltaX = p2.x - p1.x;
double dg = (atan2(deltaY, deltaX) * oe) / pi;
if(dg<0)
dg+=360;
return dg;}
bool check(double a1,double a2){
if(a1<180)
return (a2<a1) || (a2>a1+oe);
else
return (a2>a1-oe);
}
double dist(point a,point b){
return sqrt(((a.x-b.x)*(a.x-b.x))+((a.y-b.y)*(a.y-b.y)));
}
double solve(vector<point> pts){
int n=pts.size();
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |