[GESP202303 一级] 每月天数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
小明刚刚学习了每月有多少天,以及如何判断平年和闰年,想到可以使用编程方法求出给定的月份有多少天。你能做到吗?
输入格式
输入一行,包含两个整数 ,分别表示一个日期的年、月。约定 ,。
输出格式
输出一行,包含一个整数,表示输入月份有多少天。
2022 1
31
2020 2
29