# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
556107 | stefantaga | Railway (BOI17_railway) | C++14 | 111 ms | 25348 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;
vector <int> v[100005];
int i,n,m,k;
struct wow
{
int x,y;
} muchie[100005];
int tin[100005],niv[100005],tout[100005];
struct AIB
{
int aib[400005];
int ub (int x)
{
return x&(-x);
}
void update(int poz,int val)
{
for (int i=poz; i<=2*n; i+=ub(i))
{
aib[i]+=val;
}
return;
}
int query(int poz)
{
int i,sum=0;
for (int i=poz; i>=1; i-=ub(i))
{
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |