http://oj.ecustacm.cn/problem.php?id=1443
有现有得结论,暴力过不了。
即 (a-1)*(b-1)-1
#include<cstdio>
#include<iostream>
using namespace std;
int main(void)
{
int a,b; cin>>a>>b;
cout<<(a-1)*(b-1)-1<<endl;
return 0;
}
http://oj.ecustacm.cn/problem.php?id=1443
有现有得结论,暴力过不了。
即 (a-1)*(b-1)-1
#include<cstdio>
#include<iostream>
using namespace std;
int main(void)
{
int a,b; cin>>a>>b;
cout<<(a-1)*(b-1)-1<<endl;
return 0;
}