This documentation is automatically generated by competitive-verifier/competitive-verifier
#define PROBLEM \
"https://judge.yosupo.jp/problem/static_range_sum"
#include "daylight/base.hpp"
#include "daylight/structure/treap.hpp"
ll op(ll a, ll b) {
return a + b;
}
ll e() {
return 0;
}
ll mapping(ll f, ll x, int len) {
return x;
}
ll composition(ll f, ll g) {
if(f == -1) return g;
return f;
}
ll id() {
return -1;
}
int main() {
int N, Q;
cin >> N >> Q;
vll A(N);
cin >> A;
Treap<ll, op, e, ll, mapping, composition, id> treap(A);
while(Q--) {
int l, r;
cin >> l >> r;
cout << treap.prod(l, r) << endl;
}
return 0;
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 482, in update
self.update(
File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 477, in update
raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: daylight/base.hpp: line 103: unable to process #include in #if / #ifdef / #ifndef other than include guards
| Env | Name | Status | Elapsed | Memory |
|---|---|---|---|---|
| g++ | example_00 |
|
6 ms | 3 MB |
| g++ | max_random_00 |
|
2550 ms | 35 MB |
| g++ | max_random_01 |
|
2609 ms | 35 MB |
| g++ | max_random_02 |
|
2910 ms | 35 MB |
| g++ | max_random_03 |
|
3214 ms | 35 MB |
| g++ | max_random_04 |
|
2582 ms | 35 MB |
| g++ | random_00 |
|
2105 ms | 29 MB |
| g++ | random_01 |
|
2304 ms | 34 MB |
| g++ | random_02 |
|
1297 ms | 7 MB |
| g++ | random_03 |
|
444 ms | 31 MB |
| g++ | random_04 |
|
652 ms | 24 MB |