往年NOIP的一道题改的,学一下推理过程
#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <map>
#include <cmath>
using namespace std;
int main()
{
long long n, m;
cin >> n >> m;
cout << n * m - n - m << endl;
return 0;
}