結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2021-06-11 21:52:19 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 3,460 ms |
コンパイル使用メモリ | 74,348 KB |
実行使用メモリ | 56,364 KB |
最終ジャッジ日時 | 2024-12-14 23:14:18 |
合計ジャッジ時間 | 8,422 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 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");}}}