mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
274 B
C++
18 lines
274 B
C++
|
#include<cstdio>
|
||
|
#include<stdlib.h>
|
||
|
int main()
|
||
|
{
|
||
|
int n,m,c;
|
||
|
while(scanf("%d%d%d",&n,&m,&c),(m+n+c))
|
||
|
{
|
||
|
int p,q;
|
||
|
p=n-7;
|
||
|
q=m-7;
|
||
|
if((p*q)&1)
|
||
|
printf("%d\n",(p*q)/2+c);
|
||
|
else
|
||
|
printf("%d\n",(p*q)/2);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|