题目大意:让你算一个很毒瘤的式子。
题解:
题目告诉过你这个式子正常人是算不出来的。。。
那我们打个表找找规律就可以了?
(当然如果你是像wc一样的数学天才可以无视以上两句)
#include<cstdio>
using namespace std;
long long p,q;
int main(){
scanf ("%lld%lld",&p,&q);
if(p==q) printf("%lld",p*q/4);
else printf("%lld",(p-1)*(q-1)/4);
return 0;
}