Type: Default 1000ms 256MiB

字符操作

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.

题目背景

有3个字符,你可以从他们中取出任意个并随便进行排列组合,是否可以排列成字符串"ACM"

数据范围

  • 字符为任意字符包括但不限于 "abc...z","ABC...Z",“012...9",”!@#*&...."

输入

共一行输入三个字符

输出

如果可以从这三个字符里面取出任意个字符并组成字符串"ACM",则输出"Yes",反之输出"No"

样例

a c M
No
M A C
Yes

样例解释

对于样例一我们不可以组成"ACM"所以输出"No"

对于样例二我们可以组成"ACM"所以输出"Yes"

注意必须是大写的”ACM"才行

提示

char ch; //声明一个字符变量
sacnf("%c",&ch);//输入字符并赋值给字符变量c
//如果你觉得你的思路没问题不妨输出一下你的字符看看

2022新生周赛第一场(Div. 4)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2022-9-25 20:00
End at
2022-9-25 21:30
Duration
1.5 hour(s)
Host
Partic.
57