noip2017d1t1(小凯的疑惑)

//同余方程

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
long long a,b,x;
cin>>a>>b;
x=a*b-a-b;
cout<<x<<endl;
return 0;
}

原文地址:https://www.cnblogs.com/Chri-K/p/13689559.html