#abc309a. A - Nine
A - Nine
Score : points
问题描述
我们有一个如下的 矩阵,上面写有从 到 的整数。
已知两个整数 和 ,它们都在 到 之间,并且满足 。
请确定标有 和 的两个方格是否在水平方向上相邻。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
We have the following board with integers from through written on it.
You are given two integers and between and , where .
Determine if the two squares with and written on them are adjacent horizontally.
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if the two squares with and written on them are adjacent horizontally, and No
otherwise.
Sample Input 1
7 8
Sample Output 1
Yes
The two squares with and written on them are adjacent horizontally, so print Yes
.
Sample Input 2
1 9
Sample Output 2
No
Sample Input 3
3 4
Sample Output 3
No
update @ 2024/3/10 08:45:39