#abc240a. A - Edge Checker
A - Edge Checker
Score : points
问题描述
在下图所示的图像中,编号为和的点是否由一条直线段直接相连?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
In the figure shown in the image below, are the points numbered and directly connected by a line segment?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If the points numbered and are directly connected by a line segment, print Yes
; otherwise, print No
.
The judge is case-sensitive: be sure to print uppercase and lowercase letters correctly.
Sample Input 1
4 5
Sample Output 1
Yes
In the figure shown in the Problem Statement, the points numbered and are directly connected by a line segment.
Thus, Yes
should be printed.
Sample Input 2
3 5
Sample Output 2
No
In the figure shown in the Problem Statement, the points numbered and are not directly connected by a line segment.
Thus, No
should be printed.
Sample Input 3
1 10
Sample Output 3
Yes
update @ 2024/3/10 10:20:25