#C5095. Leap Year Status Checker
Leap Year Status Checker
Leap Year Status Checker
You are given multiple test cases. In each test case, you are provided with the details of several persons, each with their name and birthdate in the format dd/mm/yyyy. Your task is to determine for each person whether they were born in a leap year or not. A year is a leap year if:
- It is divisible by 4 but not by 100, or
- It is divisible by 400.
For each person, print a line containing the person's name followed by a space and then either 'Leap' if the birth year is a leap year or 'Non-Leap' otherwise.
Note: The input is read from standard input and the output should be written to standard output.
inputFormat
The first line of input contains an integer T denoting the number of test cases. For each test case:
- The first line contains an integer N denoting the number of persons.
- Each of the following N lines contains a person's name and their birthdate in the format dd/mm/yyyy, separated by a space.
All input is given via standard input.
outputFormat
For each person, print a line containing the name and their leap year status separated by a space. If the year is a leap year, print Leap; otherwise, print Non-Leap. The output should be written to standard output.
## sample2
3
Alice 29/02/1988
Bob 15/08/1990
Charlie 01/01/2000
2
Dave 12/12/1900
Eve 22/02/2004
Alice Leap
Bob Non-Leap
Charlie Leap
Dave Non-Leap
Eve Leap
</p>