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\color{red}{\mathbf{7}}
  • March 33
  • May 55
  • July 77
  • September 99

If month MM, day DD is one of the five seasonal festivals, output Yes; otherwise, output No.

以下五天被称为“五节句”(gosekku):

  • 1月7\color{red}{\mathbf{7}}
  • 3月33
  • 5月55
  • 7月77
  • 9月99

如果月份 MM、日期 DD 是五节句之一,则输出 Yes;否则输出 No

输入格式

The input is given from Standard Input in the following format:

MM DD

输入从标准输入中按以下格式给出:

MM DD

输出格式

If month MM, day DD is one of the five seasonal festivals, output Yes; otherwise, output No.

如果月份 MM、日期 DD 是五个节气节日之一,则输出 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 33 is one of the five seasonal festivals, so output Yes.

Sample 2 Explanation:
January 11 is not one of the five seasonal festivals, so output No.

Constraints

  • MM and DD are integers.
  • Month MM, day DD is a valid date in a leap year in the Gregorian calendar.

样例 1 解释:
3 月 3 日是五个节气节日之一,因此输出 Yes

样例 2 解释:
1 月 1 日不是五个节气节日之一,因此输出 No

限制条件

  • MMDD 均为整数。
  • 月份 MM、日期 DD 是公历闰年中的一个有效日期。

输入解题思路,AI测评打分。不知道怎么写?

首页