OJ-Problems-Source/HDOJ/1418_autoAC.cpp
2016-08-14 09:16:58 +08:00

10 lines
171 B
C++

#include<iostream>
#include<cstdio>
int main()
{
__int64 n,m,r;
while(scanf("%I64d%I64d",&n,&r)&&(n||r))
printf("%I64d\n",r+n-2);
return 0;
}