谈资

Talk

239B BY ruin1990 @ 2018-08-15 18:02:20 IN Problem 1000

# include <stdio.h>
# include <string.h>

void main()
{
	int a=0,b=0;
	char tmp[32768] = {0};
	while(gets(tmp)!=NULL)
	{
		
		if(strlen(tmp) < 3)
			return;
		sscanf(tmp, "%d %d\n",&a,&b);
		printf("%d\n",a+b);
		memset(tmp,0,32768);
	}
}
Tips:本主题暂无回复。
登录OnlineJudge账号后可以发表和回复Talk~登录OnlineJudge
请点击右方按钮跳转至OnlineJudge登录页面。