mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
e56ca966bc
1400-1499
10 lines
171 B
C++
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;
|
|
}
|