|
|||
How Old Are You?
The process is going to be automatic, and to avoid some human errors, there will be a calculated field that informs the age based on the current date and the birth date given. This is your task: calculate the age, or say if there's something wrong. Input SpecificationThe first line of the input gives the number of test cases, T (1 ≤ T ≤ 200). T test cases follow. Each test case starts with a blank line, then you will have two lines corresponding to the current date and the birth date, respectively. The dates are in the format DD/MM/YYYY, where DD is the day, MM is the month, and YYYY is the year. All dates will be valid. Output SpecificationThe output is comprised of one line for each input data set and should be as follows (quotes for clarifying only): “Case #N: AGE“, where N is the number of the current test case, and AGE is one of the following three options:
Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |