...
The first line of input gives the number of cases, T (1 ≤ T ≤ 200). T test cases follow. Each test case starts with a blank line, then you will have 2 lines corresponding to the current date and the birth date, respectively. The dates are in the format DD/M M /Y Y Y Y , where DD is the day, M M the month and Y Y Y Y the year. All dates will be valid.
The output is comprised of one line for each input data set and should be as follow (quotes for clarifying only): ‘Case #N : AGE’, where N is the number of the current test case and AGE is one of the 3 following options:
範例輸入 1
4 01/01/2007 10/02/2007 09/06/2007 28/02/1871 12/11/2007 01/01/1984 28/02/2005 29/02/2004
範例輸出 1
Case #1: Invalid birth date Case #2: Check birth date Case #3: 23 Case #4: 0
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.