# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
174689 | Gurban | Simple game (IZhO17_game) | C++14 | 481 ms | 44152 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>
#define pb push_back
#define ss second
#define ff first
#define N 100005
#define inf 1000000009
#define ll long long
#define mid(a,b) (a+b)/2
#define pii pair<int,int>
using namespace std;
const int H = 1e6+7;
int n,m,T[4 * H][5],a[N],pos,val,h,t;
void upd(int t,int a,int b,int l,int r,int nd){
T[nd][0] += T[nd / 2][1];
T[nd][0] -= T[nd / 2][2];
T[nd][1] += T[nd / 2][1];
T[nd][2] += T[nd / 2][2];
if(l >= a and r <= b){
if(t == 1) {
T[nd][0] ++;
T[nd][1] ++;
}
else {
T[nd][0]--;
T[nd][2]++;
}
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... |