Correct dates

Write a program that reads several dates, and for each one tells if it
is correct or not according to the Gregorian calendar.

You can find the rule for leap years in the
exercise problem://problemsjutge.org:problems/p1/jpetit/traspas-elemental.pbm.

Input

Each date consists of three integer numbers, corresponding to the day,
month and year, respectively. All years are between 1800 and 9999.

Output

For every date, tell if it is correct or not.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:39:00.108Z

© Jutge.org, 2006–2026.
https://jutge.org
