摘要:
P4551 最长异或路径 挺裸的01trie吧,dfs的时候算一下这个点到根路径异或和,加进trie,查一下和trie里面的异或和最大的。 就当用来存一下基础的01trie的板子吧 cpp include include include include using namespace std; de 阅读全文
摘要:
CF 581 题解 A "BowWow and the Timetable" 如果不是4幂次方直接看位数除以二向上取整,否则再减一 cpp include include include include include using namespace std; define int long lon 阅读全文