a+b

发现最近很闲,临在毕业前,大家都忙自己。无聊就开始刷题吧。

对自己而言,这是一个开始。

问题:http://acm.hdu.edu.cn/showproblem.php?pid=1000

 

解题:

 

 

 

#include "stdio.h"

int main()
{
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF)  /* 阅读到文件结束为止*/
	{
		printf("%d\n",a+b);
	}
	return 0;
}

 

posted @ 2010-11-17 22:58  _cc  阅读(249)  评论(4编辑  收藏  举报