Number of days in a month#6279

Number of days in a month

1 Sekunde
64 Megabyte
Sehr leicht

Determine the number of days in the -th month of the -th year according to the Gregorian calendar.

Historical Note: In late 1582, Pope Gregory XIII introduced a calendar in Catholic countries where a year is considered a leap year if it is divisible by 4, but not divisible by 100, unless it is divisible by 400.

Eingabe

Given and (1 \leq N \leq 12, 1 \leq M \leq 2100).

Ausgabe

Output the number of days in the specified month.

Beispiele

Beispiel 1

Loading
Loading