#abc312a. A - Chord
A - Chord
Score : points
问题描述
给定一个长度为的由大写英文字母组成的字符串,如果等于以下字符串中的任意一个:ACE
、BDF
、CEG
、DFA
、EGB
、FAC
或GBD
,则输出 Yes
;否则输出 No
。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Given a length- string consisting of uppercase English letters, print Yes
if equals one of ACE
, BDF
, CEG
, DFA
, EGB
, FAC
, and GBD
; print No
otherwise.
Constraints
- is a length- string consisting of uppercase English letters.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if equals one of ACE
, BDF
, CEG
, DFA
, EGB
, FAC
, and GBD
; print No
otherwise.
Sample Input 1
ABC
Sample Output 1
No
When ABC
, does not equal any of ACE
, BDF
, CEG
, DFA
, EGB
, FAC
, and GBD
, so No
should be printed.
Sample Input 2
FAC
Sample Output 2
Yes
Sample Input 3
XYX
Sample Output 3
No
update @ 2024/3/10 08:52:46