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/wavelet_matrix.hpp"
int main() {
int N, Q;
cin >> N >> Q;
vll A(N);
cin >> A;
WaveletMatrix wm(A);
REP(i, Q) {
int l, r;
cin >> l >> r;
cout << wm.kMaxSum(l, r, r - l) << 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 |
|
1829 ms | 222 MB |
| g++ | max_random_01 |
|
1915 ms | 222 MB |
| g++ | max_random_02 |
|
1789 ms | 222 MB |
| g++ | max_random_03 |
|
1868 ms | 222 MB |
| g++ | max_random_04 |
|
1774 ms | 222 MB |
| g++ | random_00 |
|
1407 ms | 174 MB |
| g++ | random_01 |
|
1543 ms | 206 MB |
| g++ | random_02 |
|
806 ms | 27 MB |
| g++ | random_03 |
|
774 ms | 191 MB |
| g++ | random_04 |
|
607 ms | 124 MB |