#P5716. 【深基3.例9】月份天数

【深基3.例9】月份天数

Problem Description

Given a year and a month, output how many days there are in that month of that year. Leap years must be considered.

Input Format

Input two positive integers, representing the year yy and the month mm, separated by a space.

Output Format

Output one line containing one positive integer, indicating how many days there are in that month.

1926 8
31
2000 2
29

Hint

Constraints: 1583y20201583 \leq y \leq 2020, 1m121 \leq m \leq 12.

Translated by ChatGPT 5