#abc365a. A - Leap Year
A - Leap Year
Score : points
问题陈述
给定一个介于 和 之间的整数 。
找出格里高利历法中 年的天数。
在给定的范围内,年份 有以下天数:
-
如果 不是 的倍数,则为 天;
-
如果 是 的倍数但不是 的倍数,则为 天;
-
如果 是 的倍数但不是 的倍数,则为 天;
-
如果 是 的倍数,则为 天。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
You are given an integer between and .
Find the number of days in the year of the Gregorian calendar.
Within the given range, the year has the following number of days:
-
if is not a multiple of , then days;
-
if is a multiple of but not a multiple of , then days;
-
if is a multiple of but not a multiple of , then days;
-
if is a multiple of , then days.
Constraints
- is an integer between and , inclusive.
Input
The input is given from Standard Input in the following format:
Output
Print the number of days in the year as an integer.
Sample Input 1
2023
Sample Output 1
365
is not a multiple of , so it has days.
Sample Input 2
1992
Sample Output 2
366
is a multiple of but not a multiple of , so it has days.
Sample Input 3
1800
Sample Output 3
365
is a multiple of but not a multiple of , so it has days.
Sample Input 4
1600
Sample Output 4
366
is a multiple of , so it has days.