daylight-library

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub daylight-pro/daylight-library

:heavy_check_mark: test/yosupo/structure/set_xor_min.test.cpp

Depends on

Code

#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

Test cases

Env Name Status Elapsed Memory
g++ almost_all_insert_00 :heavy_check_mark: AC 490 ms 201 MB
g++ almost_all_query_00 :heavy_check_mark: AC 835 ms 3 MB
g++ almost_all_query_close_00 :heavy_check_mark: AC 775 ms 3 MB
g++ ans_big_00 :heavy_check_mark: AC 6 ms 3 MB
g++ example_00 :heavy_check_mark: AC 6 ms 3 MB
g++ max_ans_small_00 :heavy_check_mark: AC 734 ms 102 MB
g++ max_random_00 :heavy_check_mark: AC 622 ms 53 MB
g++ max_random_01 :heavy_check_mark: AC 608 ms 53 MB
g++ max_random_02 :heavy_check_mark: AC 651 ms 53 MB
g++ random_00 :heavy_check_mark: AC 474 ms 53 MB
g++ random_01 :heavy_check_mark: AC 607 ms 53 MB
g++ random_02 :heavy_check_mark: AC 70 ms 11 MB
Back to top page