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

PROGRAMMING:After n days

Luz5年前 (2021-05-10)题库365
###Task description
If today is Wednesday, the next two days will be Friday; If today is Saturday, the next three days will be Tuesday. We use numbers 1 to 7 for Monday to Sunday. Given a certain day, please output the "next n days" of that day.
###Input format:
Input the first line to give a positive integer D (1 ≤ D ≤ 7), representing a day of the week.
Enter the second line to give a positive integer n (0 ≤ D ≤ 1000), representing the next n days.
###Output format:
The day of the week (1 number) is the last n days of D output in a row.
###Input example:
```in
3 2
```
###Output example:
```out
five
```






answer:If there is no answer, please comment