# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
128215 | ekrem | Roller Coaster Railroad (IOI16_railroad) | C++98 | 1682 ms | 73432 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 "railroad.h"
#include <bits/stdc++.h>
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define sol (k+k)
#define sag (k+k+1)
#define orta ((bas+son)/2)
#define coc g[node][i]
#define mod 1000000007
#define inf 1000000009
#define N 1000005
using namespace std;
typedef long long ll;
typedef pair < ll , ll > ii;
typedef vector < int > vi;
ll n, m, ans, fen[N], ne[N], ata[N];
map < ll , ll > h, hh;
map < ll , ll > :: iterator it;
ii a[N];
ll atabul(ll x){return ata[x] = (ata[x]==x)?x:atabul(ata[x]);}
void upp(ll x, ll y){
for(; x < N; x += x&-x)
fen[x] += y;
}
# | 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... |