# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
116568 | kig9981 | Regions (IOI09_regions) | C++17 | 8007 ms | 41488 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.
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
const int rt=448;
vector<int> adj[200000], R[25000], O;
int node_cnt=-1, RV[200000], num[200000], fin[200000], sum[200000], sum2[200000], tree[200001];
long long ans[200000/rt+1][25000], ans2[200000/rt+1][25000];
inline int get_int()
{
int ret=0;
bool is_negative=false;
char c=-1;
while(!('0'<=c && c<='9') && c!='-') c=getchar_unlocked();
if(c=='-') {
is_negative=true;
c=getchar_unlocked();
}
while('0'<=c && c<='9') ret*=10, ret+=c-'0', c=getchar_unlocked();
return (is_negative ? -ret:ret);
}
void add_tree(int n, int v)
{
for(++n;n<=200000;n+=n&-n) tree[n]+=v;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |