练19.5 判断生肖
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
We Chinese have a special relationship with rats, as the rat is the first animal in the traditional Chinese zodiac.Are all babies born in $2020$ "Rat Babies"? Actually, no. Babies born from January $1$ to January $24$, $2020$, are still "Pig Babies" because they were born in the Year of the Pig. Babies born on the first day of the Chinese New Year (January $25$) and later are "Rat Babies". Can you determine if the following birthday belongs to a "Pig Baby" or a "Rat Baby"?
Input Format
Two space-separated integers $month$ and $day$, representing the month and day of the baby's birth. ($1 \le month \le 12, 1 \le day \le 31$)Output Format
If it's a "Pig Baby", output "Pig"; if it's a "Rat Baby", output "Mouse".
Sample
1 1Pig
20251129 A班作业(8)
- Status
- Done
- Problem
- 5
- Open Since
- 2025-11-29 0:00
- Deadline
- 2025-12-14 23:59
- Extension
- 24 hour(s)