Trie 자료구조 문제 풀이 분석

Luogu P6587 시퀀스 최적화 제약 조건 \(x \le 20\) 활용, ID의 하위 \(x\) 비트를 Trie 구조와 세그먼트 트리 기법으로 처리 #include<iostream> #include<vector> using namespace std; typedef long long ll; const int MAX_NODES = 4e6 + 5, MAX_ELEMS = 2e5 + 5; int elem_count, query_count, base_data[MAX_ELEMS]; int child_nodes[MAX_ELEMS*20][2] ...

6월 9일 21:15에 게시됨