A+Bacm出现的问题A+BProblemTimeLimit:1000MSMemoryLimit:1024KDescription:Calculatea+bInput:Theinputwillconsistofaseriesofpairsofintegersaandb,separatedbyaspace,onepairofintegersperline,00meanstheendoftheinput,a
A+Bacm出现的问题
A+BProblem
TimeLimit:1000MSMemoryLimit:1024K
Description:
Calculatea+b
Input:
Theinputwillconsistofaseriesofpairsofintegersaandb,separatedbyaspace,onepairofintegersperline,00meanstheendoftheinput,anddonotneedtooutput.
Output:
Foreachpairofinputintegersaandbyoushouldoutputthesumofaandbinoneline,andwithonelineofoutputforeachlineininput.
SampleInput:
15
00
SampleOutput:
6
刚刚学习ACM第一题就错了麻烦大家帮帮忙了
我的代码是这个
#include
usingnamespacestd;
intmain(intargc,char*argv[])
{
inta,b;
while(cin>>a>>b)
couta>>b)
cout