#P9765. [ROIR 2021] 日期 (Day 2)
[ROIR 2021] 日期 (Day 2)
Background
Translated from ROIR 2021 Day 2 T1 Календарь на Альфе Центавра。
Problem Description
On an alien planet, a year has months, each month has days, and a week has days.
To distinguish each day in a week, humans use weekday names, while the residents of this planet use lowercase English letters az to represent each day of the week.
It is known that Year Month Day corresponds to weekday a. Find which weekday Year Month Day corresponds to.
Input Format
The first line contains three integers 。
The second line contains three integers 。
Output Format
Output a single letter, representing which weekday Year Month Day corresponds to.
30 12 7
18 1 2021
b
Hint
Constraints:
For all subtasks, ,,,,。
| Subtask ID | Special Constraints | Score |
|---|---|---|
| , | ||
| No special constraints |
Translated by ChatGPT 5