# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
243167 | VEGAnn | Svjetlost (COI18_svjetlost) | C++14 | 1444 ms | 52540 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>
#define sz(x) ((int)x.size())
#define all(x) x.begin(),x.end()
#define PB push_back
using namespace std;
typedef long double ld;
const int N = 400100;
const ld E = 1e-10;
const ld pi = 3.1415926535897;
vector<ld> vc;
int n, pr[N], nt[N], x[N], y[N], nm[N], q;
ld st[4 * N], psh[4 * N];
ld sqr(ld xx) { return xx * xx;}
ld dist(ld x1, ld y1, ld x2, ld y2){
return sqrt(sqr(x1 - x2) + sqr(y1 - y2));
}
void add(int i, int j){
ld nw_x = x[j] - x[i];
ld nw_y = y[j] - y[i];
ld ang = atan2(nw_y, nw_x);
if (ang < 0) ang += pi + pi;
vc.PB(ang);
ang += pi;
# | 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... |