OJ-Problems-Source/HDOJ/4572_autoAC.cpp
2016-09-06 13:32:33 +08:00

15 lines
275 B
C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
int main()
{
int N,M;
while(scanf("%d%d",&M,&N)!=EOF)
{
printf("%d\n",(M+(M-(N-1)/2)+1)*(N-1)/4+(M+(M-(N+1)/2)+1)*(N+1)/4);
}
return 0;
}