# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1044075 | UmairAhmadMirza | Svjetlost (COI18_svjetlost) | C++17 | 2 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 point pair<int,int>
#define x first
#define y second
#define double long double
#define int long long
double const pi=3.141592653589793;
double angle(point p1,point p2){
int deltaY = p2.y - p1.y;
int deltaX = p2.x - p1.x;
double dg = atan2(deltaY, deltaX) * 180 / pi;
if(dg<0)
dg+=360;
return dg;}
bool check(double a1,double a2){
if(a1<180)
return (a2<a1) || (a2>a1+180);
else
return (a2>a1-180);
}
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){
# | 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... |