//同余方程
#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;}
noip2017d1t1(小凯的疑惑)
原文:https://www.cnblogs.com/Chri-K/p/13689559.html