# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
156685 | tpoppo | Deda (COCI17_deda) | C++14 | 139 ms | 3424 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 ff first
#define ss second
#define pb push_back
#define mp make_pair
#define ll long long
#define all(a) a.begin(),a.end()
#define endl '\n'
#define y1 y123132
#define sqr(a) ((a)*(a))
using namespace std;
const int N=200001;
const int md=1e9+7;
const int inf=1e9+3;
int n,q,sz;
int d[N*4];
void update(int v,int x)
{
v+=sz-1;
d[v]=x;
v/=2;
while(v)
{
d[v]=min(d[v+v],d[v+v+1]);
v/=2;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |