#C. B - Cycle Hit

    传统题 1000ms 256MiB

B - Cycle Hit

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

B - Cycle Hit

Score : $200$ points

Problem Statement

You are given four strings $S_1$, $S_2$, $S_3$, and $S_4$.
Determine whether this sequence of strings has one of each of the following: H, 2B, 3B, and HR.
Here, it is guaranteed that every $S_i$ is H, 2B, 3B, or HR.

Constraints

  • Each $S_i$ is H, 2B, 3B, or HR.

Input

Input is given from Standard Input in the following format:

S1S_1

S2S_2

S3S_3

S4S_4

Output

If the given sequence of strings has one of each of H, 2B, 3B, and HR, print Yes.
Otherwise, print No.


3B
HR
2B
H
Yes

We have one of each of H, 2B, 3B, and HR.


2B
3B
HR
3B
No

We have no H.

2025寒假ATC码力训练营第八次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-31 13:00
结束于
2025-1-31 14:30
持续时间
1.5 小时
主持人
参赛人数
5