結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー みーすけみーすけ
提出日時 2021-10-03 18:26:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 2,924 ms
コンパイル使用メモリ 70,932 KB
実行使用メモリ 57,656 KB
最終ジャッジ日時 2023-09-28 18:45:25
合計ジャッジ時間 9,287 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,744 KB
testcase_01 AC 129 ms
55,956 KB
testcase_02 AC 128 ms
55,924 KB
testcase_03 AC 130 ms
55,440 KB
testcase_04 AC 128 ms
55,924 KB
testcase_05 AC 128 ms
57,656 KB
testcase_06 AC 129 ms
56,092 KB
testcase_07 AC 128 ms
55,920 KB
testcase_08 AC 131 ms
55,848 KB
testcase_09 AC 129 ms
55,488 KB
testcase_10 AC 128 ms
55,996 KB
testcase_11 AC 129 ms
55,664 KB
testcase_12 AC 128 ms
55,832 KB
testcase_13 AC 129 ms
55,616 KB
testcase_14 AC 129 ms
55,464 KB
testcase_15 AC 130 ms
55,484 KB
testcase_16 AC 128 ms
55,492 KB
testcase_17 AC 129 ms
55,668 KB
testcase_18 AC 133 ms
55,636 KB
testcase_19 AC 128 ms
55,952 KB
testcase_20 AC 129 ms
55,868 KB
testcase_21 AC 131 ms
56,020 KB
testcase_22 AC 128 ms
55,772 KB
testcase_23 AC 129 ms
55,692 KB
testcase_24 AC 132 ms
55,456 KB
testcase_25 AC 129 ms
55,756 KB
testcase_26 AC 127 ms
55,484 KB
testcase_27 AC 130 ms
55,784 KB
testcase_28 AC 130 ms
55,800 KB
testcase_29 AC 131 ms
55,484 KB
testcase_30 AC 129 ms
55,480 KB
testcase_31 AC 130 ms
55,744 KB
testcase_32 AC 131 ms
55,708 KB
testcase_33 AC 131 ms
55,796 KB
testcase_34 AC 130 ms
55,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int t = sc.nextInt();
        String c = sc.next();
        System.out.println(
                (c.equals("<") && s < t) || (c.equals("=") && s == t) || (c.equals(">") && s > t) ? "YES" : "NO");
    }
}
0