#abc333b. B - Pentagon

B - Pentagon

Score : 200200 points

问题描述

在下图中展示了一个正五边形 PP

请确定连接 PP 中点 S1S_1S2S_2 的线段长度是否等于连接点 T1T_1T2T_2 的线段长度。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

A regular pentagon PP is shown in the figure below.

Determine whether the length of the line segment connecting points S1S_1 and S2S_2 of PP equals the length of the line segment connecting points T1T_1 and T2T_2.

Constraints

  • Each of S1S_1, S2S_2, T1T_1, and T2T_2 is one of the characters A, B, C, D, and E.
  • S1S2S_1 \neq S_2
  • T1T2T_1 \neq T_2

Input

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

S1S2S_1S_2

T1T2T_1T_2

Output

If the length of the line segment connecting points S1S_1 and S2S_2 of PP equals the length of the line segment connecting points T1T_1 and T2T_2, print Yes; otherwise, print No.

Sample Input 1

AC
EC

Sample Output 1

Yes

The length of the line segment connecting point A and point C of PP equals the length of the line segment connecting point E and point C.

Sample Input 2

DA
EA

Sample Output 2

No

The length of the line segment connecting point D and point A of PP does not equal the length of the line segment connecting point E and point A.

Sample Input 3

BD
BD

Sample Output 3

Yes

update @ 2024/3/10 01:19:20