# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
132285 | sebinkim | Dragon 2 (JOI17_dragon2) | C++14 | 1242 ms | 14056 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;
typedef long long ll;
typedef pair <ll, ll> pll;
struct vec{
ll x, y;
vec() {}
vec(ll x, ll y) : x(x), y(y) {}
vec operator - (vec &v) { return vec(x - v.x, y - v.y); }
ll operator * (vec &v) { return x * v.y - y * v.x; }
};
struct query{
ll x, l, r, i;
query() {}
query(ll x, ll l, ll r, ll i) :
x(x), l(l), r(r), i(i) {}
};
struct fenwick{
ll T[101010];
void addval(ll p, ll v) { for(; p<=1e5; p+=p&-p) T[p] += v; }
ll getval(ll p) { return p? getval(p - (p & -p)) + T[p] : 0; }
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |