#P6449. [COCI 2008/2009 #4] DATUM
[COCI 2008/2009 #4] DATUM
Description
Given a date in the year , determine which day of the week it is.
Input Format
The input contains only one line with two integers , , where denotes the month and denotes the day of the month.
Output Format
Output one line with a string representing the answer. The required output for each day of the week is as follows:
| Day | Output |
|---|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
1 1
Thursday
17 1
Saturday
25 9
Friday
Hint
Constraints
For all testdata, the given date is guaranteed to be a real date in the year .
Hint
- January is a Thursday.
- Note that the input gives the day first, then the month.
Notes
This problem is translated from COCI2008-2009 CONTEST #4 T2 DATUM.
Translated by ChatGPT 5
京公网安备 11011102002149号