#abc333b. B - Pentagon
B - Pentagon
Score : points
问题描述
在下图中展示了一个正五边形 。
请确定连接 中点 和 的线段长度是否等于连接点 和 的线段长度。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
A regular pentagon is shown in the figure below.
Determine whether the length of the line segment connecting points and of equals the length of the line segment connecting points and .
Constraints
- Each of , , , and is one of the characters
A
,B
,C
,D
, andE
.
Input
The input is given from Standard Input in the following format:
Output
If the length of the line segment connecting points and of equals the length of the line segment connecting points and , 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 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 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