# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
752831 | Tien_Noob | Sterilizing Spray (JOI15_sterilizing) | C++17 | 300 ms | 9616 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 ll long long
#define sp << " "
#define faster ios_base::sync_with_stdio(0); cin.tie(0); .tie(0);
using namespace std;
ll n, q, k, a[100005], t, l, r;
set<ll>::iterator il, ir;
ll st[400005], tmp;
set<ll> s;
bool still;
vector<ll> v;
void update(ll id, ll l , ll r, ll i, ll v){
if(i<l||r<i) return ;
if(l==r){
st[id]=v;
return ;
}
ll mid=(l+r)/2;
update(id*2,l,mid,i,v);
update(id*2+1,mid+1,r,i,v);
st[id]=st[id*2]+st[id*2+1];
}
void update_divk(ll id, ll l , ll r, ll i){
if(i<l||r<i) return ;
if(l==r){
st[id]=st[id]/k;
if(st[id]>0) still=true;
return ;
# | 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... |