uva 10790

 1 #include<stdio.h>
 2 
 3 int main()
 4 {
 5     long long m , n;
 6     int  t = 1 ;
 7     while(scanf("%lld%lld",&m,&n) && m && n)
 8     {
 9         printf("Case %d: %lld\n",t , m*n*(m-1)*(n-1)/4) ;
10         t++;
11     }
12     return 0 ;
13 }

参考:http://cnblogs.com/xiaocai905767378/archive/2011/04/27/2030213.html

posted @ 2013-11-19 11:47  shaughn  阅读(112)  评论(0编辑  收藏  举报