# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
159639 | mhy908 | Game (IOI13_game) | C++14 | 11536 ms | 73440 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 "game.h"
#include <bits/stdc++.h>
const int MAXR=10+1e9;
using namespace std;
typedef long long LL;
LL gcd(LL a, LL b){return b?gcd(b, a%b):a;}
struct SEGMENT_TREE
{
struct NODE{
NODE *l, *r;
LL p, lazy;
int st, fin, num;
NODE(int s, int e) : st(s), fin(e), l(NULL), r(NULL), num(0), p(0), lazy(0) {}
}*root;
SEGMENT_TREE(){root=new NODE(1, MAXR);}
void update(NODE* here, int num, LL in){
//printf("INY %d %d\n", here->st, here->fin);
if(here->st==here->fin){
here->num=num;
here->lazy=in;
here->p=in;
//printf("INLAZY : %d %lld\n", here->num, here->lazy);
return;
}
int mid=(here->st+here->fin)/2;
if(here->num<=0){
here->num=num;
here->lazy=in;
//printf("INLAZY : %d %lld\n", here->num, here->lazy);
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |