# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
38353 | Talant | Simple game (IZhO17_game) | C++14 | 413 ms | 72328 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 fr first
#define sc second
#define OK puts("OK");
#define pb push_back
#define mk make_pair
using namespace std;
typedef long long ll;
const ll inf = (ll)1e9 + 7;
const ll N = (ll)1e6 + 10;
ll n,m;
ll a[N],type,pos,val;
pair<ll,ll> t[N * 4];
void push (ll v) {
t[v * 2].sc += t[v].sc;
t[v * 2 + 1].sc += t[v].sc;
t[v].fr += t[v].sc;
t[v].sc = 0;
}
void update (ll l,ll r,ll add,ll v = 1,ll tl = 1,ll tr = (N - 6)) {
if (tl > tr)
return;
if (l > tr || tl > r)
return;
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... |