This documentation is automatically generated by competitive-verifier/competitive-verifier
#define PROBLEM \
"https://judge.yosupo.jp/problem/set_xor_min"
#include "daylight/base.hpp"
#include "daylight/structure/binary_trie.hpp"
int main() {
int Q;
cin >> Q;
BinaryTrie<ll> trie;
while(Q--) {
int t;
cin >> t;
if(t == 0) {
int x;
cin >> x;
if(trie.count(x) > 0) continue;
trie.add(x);
} else if(t == 1) {
int x;
cin >> x;
if(trie.count(x) == 0) continue;
trie.erase(x);
} else {
int x;
cin >> x;
cout << (trie.min_element(x) ^ x) << 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++ | almost_all_insert_00 |
|
490 ms | 201 MB |
| g++ | almost_all_query_00 |
|
835 ms | 3 MB |
| g++ | almost_all_query_close_00 |
|
775 ms | 3 MB |
| g++ | ans_big_00 |
|
6 ms | 3 MB |
| g++ | example_00 |
|
6 ms | 3 MB |
| g++ | max_ans_small_00 |
|
734 ms | 102 MB |
| g++ | max_random_00 |
|
622 ms | 53 MB |
| g++ | max_random_01 |
|
608 ms | 53 MB |
| g++ | max_random_02 |
|
651 ms | 53 MB |
| g++ | random_00 |
|
474 ms | 53 MB |
| g++ | random_01 |
|
607 ms | 53 MB |
| g++ | random_02 |
|
70 ms | 11 MB |