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

PROGRAMMING:What day is the week?

Luz5年前 (2021-05-10)题库516
If I tell you what day it is today, what day will it be in a few days?
Please write a program, input today's week number $$W $$and the days passed $$n $$, calculate and output the week number of this day in the future $$d $$.
Note: integer values 0 ~ 6 are used to represent Sunday, Monday,..., Saturday.


< TD align = "center" > < b > week
< TD align = "center" > < b > value


< TD align = "center" > Sunday



< TD align = "center" > Monday



< TD align = "center" > Tuesday



< TD align = "center" > Wednesday



< TD align = "center" > Thursday



< TD align = "center" > Friday



< TD align = "center" > Saturday


0
1
2
3
4
5
6

####Input format
>$$W $$and $$n$$
####Output format
> $$d$$
Note: the title guarantees that the values of $$W $, $$n $$and $$d $$are in the range of int type representation.
####Input sample
```in
3 100
```
####Output sample
```out
five
```







answer:If there is no answer, please comment