Monday, April 25, 2016

UVA 10970

#include<iostream>

using namespace std;

int main()
{
 long long m,n,c;
 
 while(cin>>m>>n)
 {
  c= m * n -1;
  cout<<c<<endl;
  
 }
 
 
 return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)