AT_abc452_a.Gothec Editorial
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
The following five days are called the five seasonal festivals (gosekku).
- January 7
- March 3
- May 5
- July 7
- September 9
If month M, day D is one of the five seasonal festivals, output Yes; otherwise, output No.
以下五天被称为“五节句”(gosekku):
- 1月7日
- 3月3日
- 5月5日
- 7月7日
- 9月9日
如果月份 M、日期 D 是五节句之一,则输出 Yes;否则输出 No。
输入格式
The input is given from Standard Input in the following format:
M D
输入从标准输入中按以下格式给出:
M D
输出格式
If month M, day D is one of the five seasonal festivals, output Yes; otherwise, output No.
如果月份 M、日期 D 是五个节气节日之一,则输出 Yes;否则输出 No。
输入输出样例
输入#1
3 3
输出#1
Yes
输入#2
1 1
输出#2
No
输入#3
4 4
输出#3
No
输入#4
11 7
输出#4
No
说明/提示
Sample 1 Explanation:
March 3 is one of the five seasonal festivals, so output Yes.
Sample 2 Explanation:
January 1 is not one of the five seasonal festivals, so output No.
Constraints
- M and D are integers.
- Month M, day D is a valid date in a leap year in the Gregorian calendar.
样例 1 解释:
3 月 3 日是五个节气节日之一,因此输出 Yes。
样例 2 解释:
1 月 1 日不是五个节气节日之一,因此输出 No。
限制条件
- M 和 D 均为整数。
- 月份 M、日期 D 是公历闰年中的一个有效日期。
输入解题思路,AI测评打分。不知道怎么写?