其实,有很多坑。解决了就好了。

c/c++ code

#include<stdio.h>
int main()
{
long long i,t,a,b,c;
while((scanf("%ld",&t))!=EOF)
{
if(t==0)
break;
for(i=0;i<t;i++)
{
scanf("%ld%ld",&b,&c);
a=b+c;
if(i!=0)
printf(" ");
printf("%ld",a);
}
printf("\n");
}
}

一直用的都是vc++这个不能用 long long int   导致今天做题,用long int 储存不下数据,在学校的网站上她说wrong answer结果居然是少写了一个空格、

posted @ 2015-11-15 16:52  X-POWER  阅读(190)  评论(0编辑  收藏  举报