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

PROGRAMMING:Calculate weekly value

Luz5年前 (2021-05-10)题库448
Programming implementation: input a year, find out the day of the week on January 1 of the year, require the use of all Chinese form (such as "Saturday") output, and limit can not use the loop structure. Suppose that the Gregorian calendar was carried out from the first day of A.D., and January 1, A.D. was a Monday. The rule of intercalation in Gregorian calendar is 97 Intercalations in 400 years, which can also be summarized as four intercalations, one hundred non intercalations and four hundred intercalations.
###Input format:
Enter a positive integer for the year.
###Output format:
Output the week value in Chinese, and wrap at last.
###Input example:
```in
two thousand and twenty-one
```
###Output example:
```out
Friday
```







answer:If there is no answer, please comment