练习题
wzz941230
这个作者很懒,什么都没留下…
展开
-
16进制数的定义以及输入输出
HDOJ练习题 16进制数的定义以及输入输出!!!!!!!!!!!!!!!!!!!!! # include int main () { int a=0x00,b=0x00; while (scanf("%x %x",&a,&b)!=EOF) { printf("%d\n",a+b); } return 0; }原创 2015-11-09 17:42:28 · 901 阅读 · 0 评论 -
hdoj 练习题1.2.2 字符串反转
Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them. Input原创 2015-11-09 19:59:59 · 331 阅读 · 0 评论 -
HDOJ 练习题 memset 和malloc 函数的用法
memset 快速赋值 malloc 分配内存空间 代码举例: # include # include # include int main () { int n; while (scanf("%d",&n)!=EOF) { int *a; a=(int *)malloc(n*sizeof(int)); memset(a,0,n*sizeof(in原创 2015-11-09 20:43:40 · 316 阅读 · 0 评论 -
hdoj练习题 异或的应用
Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now putting on the desk, and only one of them will原创 2015-11-12 16:21:24 · 267 阅读 · 0 评论 -
gets()函数的应用
gets(): 作用为录入字符串,与scanf("%s")不同的是它是以换行符为记号区分字符串是否录入结束的,而scanf是以换行和空格区分字符串是否录入结束的。原创 2015-11-12 18:30:01 · 447 阅读 · 0 评论