trie
Dejavu1z
做题,总结,不断的学习
展开
-
HDU3460 (字典树)
题意描述 The contest is beginning! While preparing the contest, iSea wanted to print the teams’ names separately on a single paper. Unfortunately, what iSea could find was only an ancient printer: so ancient that you can’t believe it, it only had three kinds o原创 2020-07-17 19:19:56 · 100 阅读 · 0 评论 -
HDU5269 (字典树)
题意描述 Memphis loves xor very musch.Now he gets an array A.The length of A is n.Now he wants to know the sum of all (lowbit(Ai xor Aj)) (i,j∈[1,n]) We define that lowbit(x)=2k,k is the smallest integer satisfied ((x and 2k)>0) Specially,lowbit(0)=0 Becaus原创 2020-07-17 18:14:36 · 112 阅读 · 0 评论