HDU1000ACM牛刀小试

要想成为编程牛人,练习ACM题目是最好的途径,今天终于开始了,勉励自己以后更上一层楼,成为牛人。

对了发现一个好的博客:

 http://acm.cplusplus.me/category/race ACM解题报告

http://www.cplusplus.me/       C/C++程序员之家

HDU1000题目链接:http://icpc.njust.edu.cn/Hdu/1000

题目代码:

#include <stdio.h>
void main()
{
   int a,b;
    while(scanf("%d%d",&a,&b)!=EOF)
   {
       printf("%d\n",a+b);
    }
}

提示:处理到文件尾,所以需要加一句 while(scanf("%d%d",&a,&b)!=EOF)即可通过

下一步计划:在linux做题,练习使用VIM

原文地址:https://www.cnblogs.com/fistao/p/3076172.html