# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1136240 | duckindog | Progression (NOI20_progression) | C++17 | 736 ms | 76656 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 300'000 + 10;
int n, q;
int d[N];
namespace IT {
static const int null = 1'000'000'000'000;
struct Node {
int pref, suff, best;
int valuePref, valueSuff;
int sum;
Node() : pref(0), suff(0), best(0),
valuePref(null), valueSuff(null),
sum(0) {}
Node(int length, int value, int sum) : pref(length), suff(length), best(length),
valuePref(value), valueSuff(value),
sum(sum) {}
Node& operator += (int add) {
valuePref += add, valueSuff += add;
return *this;
}
};
Node f[N << 2];
int agnLazy[N << 2], addLazy[N << 2];
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |