Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Black and white painting
Description You are visiting the Centre Pompidou which contains a lot of modern paintings. In particular you notice one painting which consists solely of black and white squares, arranged in rows and columns like in a chess board (no two adjacent squares have the same colour). By the way, the artist did not use the tool of problem A to create the painting. Since you are bored, you wonder how many Input The input contains several test cases. Each test case consists of one line with three integers The last test case is followed by a line containing three zeros. Output For each test case, print the number of chess boards embedded within the given painting. Sample Input 8 8 0 8 8 1 9 9 1 40000 39999 0 0 0 0 Sample Output 0 1 2 799700028 Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator