# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
17718 | Adilkhan | Weighting stones (IZhO11_stones) | C++98 | 80 ms | 23220 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 pb push_back
#define endl "\n"
#define mp make_pair
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define fname ""
#define sz(x) (int)(x.size())
typedef long long ll;
using namespace std;
const ll N = (ll)(5e5) + 322;
const ll INF = (ll)(1e9);
const ll mod = (ll)(1e9) + 7;
const double eps = 1e-9;
int n, x[N], y[N], q, s, sum, mn, mx;
int add[N];
pair <int, int> t[N * 4];
void push(int x, int l, int r) {
if (add[x]) {
t[x].fi += add[x];
t[x].se += add[x];
if (l != r) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |