- 博客(3)
- 收藏
- 关注
转载 按位运算方式
按位与(&) 运算方式:对应的两个二进位均为1时,结果位才为1,否则为0 9(00001001) 5(00000101) 1(00000001) 9&5=1 按位或 运算方式:对应的两个二进位只要有一个为1,结果位就为1 9(00001001) 5(00000101) 13(00001101) 9|5=13 按位异或 运算方式:对应的两个二进...
2014-08-01 09:24:00
96
转载 HDProblem-2203亲和数(KMP算法)
1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 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...
2014-07-29 22:03:00
81
转载 HDProblem-1251统计难题(字典树)
1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 typedef struct tire 6 { 7 struct tire *next[26];//由于是小写字母,所以26,数字10,大小写字母52 8 int v...
2014-07-28 22:12:00
73
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人