# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
398528 | model_code | Arboras (RMI20_arboras) | C++17 | 4265 ms | 19200 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.
/**
* user: perju-verzotti-712
* fname: Luca
* lname: Perju-Verzotti
* task: Arboras
* score: 100.0
* date: 2020-12-04 11:29:29.204456
*/
#include <bits/stdc++.h>
using namespace std;
const long long mod=1000000007;
long long p[100003],t[100003],sz[100003],depth[100003],heavyhead[100003],heavychild[100003];
vector<long long>v[100003];
long long d[100003];
unsigned long long dp[100003],dp1[100003];
long long bstfiu[100003];
long long pzlin[100003];
long long cnttidk;
long long lsb (long long x)
{
return x&-x;
}
long long aib[100003];
void update (long long pz, long long val)
{
for(long long i=pz;i<=100000;i+=lsb(i))
aib[i]=aib[i]+val;
}
long long query (long long pz)
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... |