# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
135507 | ksmzzang2003 | Game (IOI13_game) | C++17 | 8716 ms | 173244 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>
using namespace std;
typedef long long ll;
int R,C,Q;
struct node1d
{
ll val=0;
int pos = -1;
node1d *lc=nullptr,*rc=nullptr;
void update(int s,int e,int t,ll v)
{
if(e<t || t<s )
return ;
if(s==e)
{
val=v;
return;
}
int m = (s+e)/2;
if(pos>=0)
{
if(pos<=m)
{
lc = new node1d;
lc->pos=pos,lc->val=val;
}
else
{
rc = new node1d;
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... |