摘要:
a . You Are Given Two Binary Strings... 二进制乘法和十进制一样,列下竖式或者直接根据二进制定义乘一下,就会发现这个乘2^k就是把f(y)左移k位,然后观察一下就会发现只要把f(y)的最低位1 与 f(x)中向左最靠近它的那一位的1 对齐就行 b.You Are 阅读全文
摘要:
字典树是一种很简单的数据结构,就是将字符串存在书上,相同前缀进行压缩 模板题:http://acm.hdu.edu.cn/showproblem.php?pid=1251 #include<bits/stdc++.h> #define fi first #define se second #defi 阅读全文