# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176398 | nrg_studio | Plahte (COCI17_plahte) | C++20 | 185 ms | 34720 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define pii pair<ll,ll>
#define f first
#define s second
#define chmin(a, b) a = min(a,b)
#define chmax(a, b) a = max(a,b)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define F0R(i, a) for (int i = 0; i < (a); i++)
#define all(x) x.begin(),x.end()
#define vec vector
const int MAX_N = 8e4+1, l2d = 18;
pair<pii,int> pts[3*MAX_N];
pair<pii,pii> p2[MAX_N];
int lift[MAX_N][l2d];
vec<int> adj[MAX_N];
set<int> col[MAX_N];
int ans[MAX_N], c[MAX_N];
int jump(int a, int d) {
for (int i=0;i<l2d;i++) {
if ((1<<i)&d) {
a = lift[a][i];
if (a==-1) {a = 0;}
}
} return a;
# | 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... |