#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
int n, m;
int main() {
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
#endif
while(scanf("%d%d", &n, &m) == 2) {
printf("%d\n", n*m-1);
}
return 0;
}
UVa 10970 - Big Chocolate
最新推荐文章于 2019-07-31 10:04:19 发布