这题我就画了一个图,用面积来计算,本来想试试能不能过,没想到就过了,太坑了把!
啥也别说了,见代码:
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
printf("%d\n",n*m/2);
}
return 0;
}