This documentation is automatically generated by competitive-verifier/competitive-verifier
#define PROBLEM \
"https://judge.yosupo.jp/problem/point_set_range_frequency"
#include "daylight/base.hpp"
#include "daylight/structure/binary_trie.hpp"
int main() {
int N, Q;
cin >> N >> Q;
BinaryTrie<ull, 64> bt;
vector<ull> a(N);
cin >> a;
REP(i, N) {
bt.add(a[i] * N + i);
}
while(Q--) {
int t;
cin >> t;
if(t == 0) {
int k;
ull v;
cin >> k >> v;
bt.erase(a[k] * N + k);
a[k] = v;
bt.add(a[k] * N + k);
} else {
int l, r;
ull x;
cin >> l >> r >> x;
cout << bt.lower_bound_rank(x * N + r)
- bt.lower_bound_rank(x * N + l)
<< endl;
}
}
}
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++ | many_query_0_00 |
|
374 ms | 30 MB |
| g++ | many_query_0_01 |
|
525 ms | 105 MB |
| g++ | many_query_0_02 |
|
583 ms | 105 MB |
| g++ | many_query_0_03 |
|
712 ms | 399 MB |
| g++ | many_query_1_00 |
|
699 ms | 31 MB |
| g++ | many_query_1_01 |
|
767 ms | 55 MB |
| g++ | many_query_1_02 |
|
902 ms | 104 MB |
| g++ | many_query_1_03 |
|
793 ms | 202 MB |
| g++ | max_00 |
|
557 ms | 19 MB |
| g++ | max_01 |
|
612 ms | 30 MB |
| g++ | max_02 |
|
655 ms | 31 MB |
| g++ | max_03 |
|
745 ms | 103 MB |
| g++ | max_04 |
|
748 ms | 105 MB |
| g++ | max_05 |
|
861 ms | 202 MB |
| g++ | max_06 |
|
876 ms | 203 MB |
| g++ | max_07 |
|
801 ms | 400 MB |
| g++ | medium_00 |
|
389 ms | 4 MB |
| g++ | medium_01 |
|
362 ms | 4 MB |
| g++ | medium_02 |
|
386 ms | 3 MB |
| g++ | medium_03 |
|
404 ms | 5 MB |
| g++ | medium_04 |
|
555 ms | 17 MB |
| g++ | small_n_00 |
|
337 ms | 3 MB |
| g++ | small_n_01 |
|
335 ms | 3 MB |
| g++ | small_n_02 |
|
370 ms | 3 MB |