問題一覧 > 通常問題

No.1543 [Cherry 2nd Tune A] So This Is Programming

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 304
作問者 : 👑 Kazun / テスター : harurun
お気に入りにしたユーザー ProblemId : 6143 / 自分の提出
問題文最終更新日: 2021-06-01 23:13:34
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
yukicoder contest 299 (BANNED CONTEST) (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。