Capital OneOA #2
Octavian Lunar Calendar — Phase of Date
估计简单可在线判题
考点(AI 标注)位运算模拟/实现
An Octavian year is divided into months with the same lengths as the 12 months of the Earth Gregorian calendar (a fixed non-leap year), and there are 8 cyclic moon phases: NewMoon, Crescent, Quarter, Gibbous, Full, Waning, Eclipse, Twilight. Given the phase at the start of the year, a month, and a day of that month, find the phase on that date.
输入格式
One line with three fields: startPhase month day. startPhase is one of the 8 names above; 1≤month≤12, and day is within the valid range for that month.
输出格式
Output the name of the moon phase on that date.
样例 1
输入:
NewMoon 1 1
输出:
NewMoon
样例 2
输入:
NewMoon 1 2
输出:
Crescent
样例 3
输入:
Twilight 12 31
输出:
Gibbous