题目地址:http://vjudge.net/problem/UVA-10970
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{int n,m;while(scanf("%d%d",&n,&m)==2) printf("%d\n", m*n-1);return 0;
}
题目地址:http://vjudge.net/problem/UVA-10970
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{int n,m;while(scanf("%d%d",&n,&m)==2) printf("%d\n", m*n-1);return 0;
}