F. 练41.3 计算星期几

    Type: Default 1000ms 128MiB

练41.3 计算星期几

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

If today is Sunday, what day of the week will it be after a^b days?

Input Format

Two positive integers a and b, separated by a single space. (0 < a ≤ 100, 0 < b ≤ 10000)

Output Format

A string representing the day of the week after a^b days.
Where Monday is Monday, Tuesday is Tuesday, Wednesday is Wednesday, Thursday is Thursday, Friday is Friday, Saturday is Saturday, and Sunday is Sunday.

Sample

3 2000
Tuesday

20250920B班作业(2)

Not Claimed
Status
Done
Problem
7
Open Since
2025-9-20 0:00
Deadline
2025-10-11 23:59
Extension
24 hour(s)