现在的位置: 首页 > 综合 > 正文

2659: [Beijing wc2012]算不出的算式 (数学)

2018年04月25日 ⁄ 综合 ⁄ 共 133字 ⁄ 字号 评论关闭
#include<cstdio>
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;
}

抱歉!评论已关闭.