-->
当前位置:首页 > 题库

PROGRAMMING:days

Luz5年前 (2021-05-10)题库428
###Task description
```
Enter a certain day in a certain year to determine which day of the year this day is? Tip: take March 5 as an example, you should add up the first two months, and then add 5 days, which is the day of the year. Please pay attention to leap year.
```
###Input format:
```
Several groups of data, one line in each group, including three integers separated by spaces, indicating the date of year, month and day. The test data is guaranteed to be the legal date.
```
###Input example:
```in
2019 10 10
2020 3 1
2019 3 1
2019 2 28
3000 5 6
```
###Output example:
```out
"2019-10-10" is the 283th day.
"2020-03-01" is the 61th day.
"2019-03-01" is the 60th day.
"2019-02-28" is the 59th day.
"3000-05-06" is the 126th day.
```







answer:If there is no answer, please comment