No.1543 [Cherry 2nd Tune A] So This Is Programming
問題文最終更新日: 2021-06-01 23:13:34
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
Problem Statement
You are given two non-negative integers $S,T$ and a character $c$. Depending on $c$, answer the following question: print YES if it is correct, and NO if it is not.
- When $c=$
<$\cdots$ is $S < T$? - When $c=$
>$\cdots$ is $S > T$? - When $c=$
=$\cdots$ is $S = T$?
Constraints
- $S,T$ are integers between $0$ and $100$, inclusive.
- $c$ is one of
<,>,=.
Input
$S$ $T$ $c$
Output
Print YES if the given question is correct, and NO if it is not.
Do not forget the newline at the end.
Sample
Sample 1
Input
1 5 <
Output
YES
Since $S=1, T=5, c=$<, the given question is "Is $1<5$?".
This is correct, so you must print YES.
Sample 2
Input
3 4 >
Output
NO
Since $S=3, T=4, c=$>, the given question is "Is $3>4$?".
This is not correct, so you must print NO.
Sample 3
Input
0 0 =
Output
YES
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Kazun
harurun