
hdu练习题
zz91
浙大cs硕士在读
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu_1201:18岁生日
http://acm.hdu.edu.cn/showproblem.php?pid=1201 #include int isyear(int x) { if ( (x%400==0)||(x%100!=0&&x%4==0) ) { return 1; } else return 0; } int dayofmonth[13][2]= { 0,0, 31,原创 2013-03-12 09:48:55 · 604 阅读 · 0 评论 -
hdu_1020:Encoding
http://acm.hdu.edu.cn/showproblem.php?pid=1020 #include #include char str[10005]; //输入的字符串 int a[26]; //标记26个字母的个数 int main() { int n,i,flag;原创 2013-03-12 10:35:46 · 586 阅读 · 0 评论 -
hdu_1062:Text Reverse
http://acm.hdu.edu.cn/showproblem.php?pid=1062 #include #include int main() { int n,i,j,flag; char str[1000]; while (scanf("%d",&n)!=EOF) { getchar(); while (n--) { gets(str); fla原创 2013-03-12 11:28:25 · 566 阅读 · 0 评论