mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
15 lines
275 B
C++
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;
|
||
|
}
|