# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
776396 | Hacv16 | Sterilizing Spray (JOI15_sterilizing) | C++17 | 5073 ms | 8168 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;
typedef long long ll;
const int MAX = 1e5 + 15;
inline ll get(void) {
char c = getchar();
while (c < '0' || c > '9')
c = getchar();
ll ret = 0;
while (c >= '0' && c <= '9')
ret = ret * 10 + (c - '0'), c = getchar();
return ret;
}
struct Node{
ll sum, mx;
Node(ll a = 0, ll b = 0) : sum(a), mx(b) { }
Node operator + (Node other){
return Node(sum + other.sum, max(mx, other.mx));
}
} seg[4 * MAX];
ll n, q, k, v[MAX];
void build(int p, int l, int r){
if(l == r){
# | 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... |