結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー harurun
提出日時 2021-04-17 02:28:34
言語 Java
(openjdk 23)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 476 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 78,960 KB
実行使用メモリ 41,644 KB
最終ジャッジ日時 2024-12-14 19:41:40
合計ジャッジ時間 7,522 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.lang.String;
class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int S=Integer.parseInt(scan.next());
        int T=Integer.parseInt(scan.next());
        String c=scan.next();
        if((c.equals("=")&&S==T)||(c.equals("<")&&S<T)||(c.equals(">")&&S>T)){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
        return;
    }
}
0