mirror of
https://gitcode.com/Zengtudor/alg2025.git
synced 2025-09-04 01:01:43 +00:00
update
This commit is contained in:
parent
8d2960a1ae
commit
8b7ef64107
@ -4,7 +4,7 @@
|
||||
|
||||
void fast_io() {
|
||||
std::ios_base::sync_with_stdio(false);
|
||||
std::cin.tie(NULL);
|
||||
std::cin.tie(nullptr);
|
||||
}
|
||||
|
||||
const int MAXN = 100005;
|
||||
@ -34,7 +34,7 @@ namespace Trie {
|
||||
}
|
||||
}
|
||||
|
||||
int query_max_xor(int val) {
|
||||
int qmaxor(int val) {
|
||||
int curnode = 0;
|
||||
int maxorval = 0;
|
||||
for (int i = BITS - 1; i >= 0; --i) {
|
||||
@ -87,7 +87,7 @@ int main() {
|
||||
|
||||
int max_ans = 0;
|
||||
for (int i = 1; i <= n; ++i) {
|
||||
max_ans = std::max(max_ans, Trie::query_max_xor(dist[i]));
|
||||
max_ans = std::max(max_ans, Trie::qmaxor(dist[i]));
|
||||
}
|
||||
|
||||
std::cout << max_ans << '\n';
|
||||
|
Loading…
Reference in New Issue
Block a user