#t11. 计算日期是该年的第几天
计算日期是该年的第几天
Day of the Year
Problem Description
This problem asks you to write a program that computes which day of the year a given date is. A leap year is one that is divisible by but not by , or is divisible by . February has days in a leap year.
Input Format
A single line giving the date in the format yy/mm/dd (i.e. year/month/day).
Output Format
Output on a single line the day of the year that the date falls on.
Sample Input 1
2020/02/29
Sample Output 1
60
Sample Input 2
2021/02/28
Sample Output 2
59
Sample Input 3
2023/12/31
Sample Output 3
365
Constraints
The year satisfies , and the input date is a valid date.
相关
在以下作业中: