# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
392936 | vanic | UFO (IZhO14_ufo) | C++14 | 2094 ms | 114896 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 <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <set>
#include <array>
using namespace std;
const int maxn=1e6+5;
typedef long long ll;
struct tournament{
vector < int > t;
int pot;
tournament(int sz){
for(int i=0; i<sz; i++){
t.push_back(0);
}
pot=sz/2;
}
void update(int x, int val){
t[x]+=val;
for(x/=2; x>0; x/=2){
t[x]=max(t[x*2], t[x*2+1]);
}
}
int query(int L, int D, int x, int l, int d, int val, bool p){
if(L>=l && D<=d){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |