# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
854780 | TadijaSebez | Dominance (CEOI08_dominance) | C++17 | 30 ms | 736 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>
using namespace std;
#define pb push_back
#define ll long long
const ll lim=2e9;
const int N=3050;
int x[N],y[N],r[N];
char col[N];
ll Get(ll L,ll R,ll diff){
if(abs(L)%2!=diff%2)L++;
if(abs(R)%2!=diff%2)R--;
if(L>R)return 0;
return (R-L+2)/2;
}
void Split(vector<array<ll,3>>& all,ll val){
vector<array<ll,3>> ans;
for(auto x:all){
if(x[0]<=val && x[1]>=val){
if(x[0]<val){
ans.pb({x[0],val-1,x[2]});
ans.pb({val,x[1],x[2]});
}else{
ans.pb(x);
}
}else{
ans.pb(x);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |