题目链接
题目大意:给出p,q求这个
题解:跪啊 丢链接跑1 2
我的收获:考虑几何意义
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<iostream>
using namespace std;
typedef long long LL;
int main()
{
LL p,q;
cin>>p>>q;
if (p==q)
cout<<(p-
1)*(p+
1)/
4;
else cout<<(p-
1)*(q-
1)/
4;
return 0;
}
转载请注明原文地址: https://www.6miu.com/read-1150191.html