#include <cstdio>
int main() {
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
#endif
int a, b;
int t = 0;
while(scanf("%d%d", &a, &b) == 2 && a && b) {
printf("Case %d: %lld\n", ++t, (long long)a*b*(a*b-a-b+1)/4);
}
return 0;
}
UVa 10790 - How Many Points of Intersection?
最新推荐文章于 2020-02-07 11:05:28 发布