摘要: 按位与(&)运算方式:对应的两个二进位均为1时,结果位才为1,否则为09(00001001)5(00000101)1(00000001)9&5=1按位或运算方式:对应的两个二进位只要有一个为1,结果位就为19(00001001)5(00000101)13(00001101)9|5=13按位异或运算方... 阅读全文
posted @ 2014-08-01 09:24 ✎.....len冷 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #define N 100005 5 char s1[2*N],s2[N]; 6 int next[N],l1,l2; 7 8 void get_next(char *str,int len) 9 {10 int i=... 阅读全文
posted @ 2014-07-29 22:03 ✎.....len冷 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef struct tire 6 { 7 struct tire *next[26];//由于是小写字母,所以26,数字10,大小写字母52 8 int v; 9 }Tire;10 11 Tire... 阅读全文
posted @ 2014-07-28 22:12 ✎.....len冷 阅读(239) 评论(0) 推荐(0) 编辑