标签:
3 2 0 0
3
#include<iostream> using namespace std; int main(){ long long n,m; while(cin>>n>>m){ if(n==0 && m==0) break; cout<<n+m-2<<endl; } return 0; }
C++
原文地址:http://blog.csdn.net/nufangdongde/article/details/46279857