AtCoder Beginner Contest 155
翻译中…
Problem Statement
翻译中…
A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.
翻译中…
You will be given three integers $A$, $B$, and $C$. If this triple is poor, print Yes; otherwise, print No.
翻译中…
Constraints
翻译中…
$A$,$B$, and$C$are all integers between$1$and$9$(inclusive).
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B C
翻译中…
Output
翻译中…
If the given triple is poor, print Yes; otherwise, print No.
翻译中…
样例
Input #1
5 7 5
Output #1
Yes
$A$ and $C$ are equal, but $B$ is different from those two numbers, so this triple is poor.
Input #2
4 4 4
Output #2
No
$A$, $B$, and $C$ are all equal, so this triple is not poor.
Input #3
4 9 6
Output #3
No
Input #4
3 3 4
Output #4
Yes
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。