1#include<stdio.h> 2int main() 3{ 4//freopen("in.txt","r",stdin); 5int m, n, c,ans; 6while(1) 7{ 8scanf("%d%d%d", &m, &n, &c); 9if(m==0 && n==0 && c==0) break;10m=m-7;n=n-7;11ans=(m*n)/2;12if(m%2==1 && n%2==1)ans=ans+c;13printf("%d\n",ans);14}15return 0;16}
posted on 2008-07-20 22:12 gong 阅读(1022) 评论(0) 编辑 收藏 引用
Powered by: C++博客 Copyright © gong