結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2021-06-11 21:52:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 2,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 5,830 ms |
コンパイル使用メモリ | 74,580 KB |
実行使用メモリ | 54,252 KB |
最終ジャッジ日時 | 2024-12-14 23:14:57 |
合計ジャッジ時間 | 8,115 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import java.util.Scanner;public class Main {public static void main(String[] args) throws Exception {Scanner sc = new Scanner(System.in);int s = sc.nextInt();int t = sc.nextInt();char c = sc.next().charAt(0);sc.close();if (s < t && c == '<') {System.out.println("YES");} else if (s > t && c == '>') {System.out.println("YES");} else if (s == t && c == '=') {System.out.println("YES");} else {System.out.println("NO");}}}