找规律

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
#define int long long 
using namespace std;
int a,b,ans=0;

signed	main()
{
	scanf("%lld %lld",&a,&b);
	if(a>b)	swap(a,b);
	int c;
	printf("%lld",(a-1)*b-a);
}
posted on 2019-10-16 21:17  萌德真帅  阅读(91)  评论(0编辑  收藏  举报