#I. C++-判断-输入年月,判断该月的天数

    Type: Default 1000ms 256MiB

C++-判断-输入年月,判断该月的天数

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.

Background

Description

输入年月,判断该月的天数。 闰年平年的判断 非百年 一般的年份除以4,有余数的是平年,没有余数的是闰年 整百年 如果是那个年份是整百的,那么该年份除以400,有余数的是平年,没有余数的是闰年; 例如 2020年能被4整除,那么2020年就是闰年 2000年能被400整除,那么2000年也是闰年 2019年除以4,余数为3,不能被4或者400整除,那么2019年就是平年 image

Format

Input

Output

Samples

1990
2
28
2000
1
31
2100
2
28

Limitation

1s, 1024KiB for each test case.

C++基础知识01(输入输出、变量类型、判断)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
11
Start at
2024-5-5 0:00
End at
2024-5-20 0:00
Duration
360 hour(s)
Host
Partic.
52