Uva 10970 Solution

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n, m;

    while(cin >> n >> m)
    {
        long int t = (n*m) - 1;
        cout << t << endl;
    }

    return 0;
}

Comments