結果
問題 |
No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
|
ユーザー |
|
提出日時 | 2022-01-11 15:42:47 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 3,986 ms |
コンパイル使用メモリ | 76,296 KB |
実行使用メモリ | 54,492 KB |
最終ジャッジ日時 | 2024-11-14 11:39:09 |
合計ジャッジ時間 | 10,141 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import java.util.*; public class Ex { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int t = sc.nextInt(); String compare; if (s == t) { compare = "="; } else if (s < t) { compare = "<"; } else { compare = ">"; } String c = sc.next(); if (c.equals(compare)) { System.out.println("YES"); } else { System.out.println("NO"); } } }