結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー マサマサ
提出日時 2022-01-11 15:42:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 3,199 ms
コンパイル使用メモリ 74,132 KB
実行使用メモリ 54,572 KB
最終ジャッジ日時 2024-04-26 20:40:42
合計ジャッジ時間 8,429 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
54,156 KB
testcase_01 AC 120 ms
54,020 KB
testcase_02 AC 120 ms
53,984 KB
testcase_03 AC 113 ms
53,360 KB
testcase_04 AC 110 ms
52,868 KB
testcase_05 AC 105 ms
54,472 KB
testcase_06 AC 123 ms
54,284 KB
testcase_07 AC 105 ms
52,588 KB
testcase_08 AC 113 ms
53,000 KB
testcase_09 AC 121 ms
53,744 KB
testcase_10 AC 126 ms
53,796 KB
testcase_11 AC 120 ms
54,160 KB
testcase_12 AC 120 ms
53,864 KB
testcase_13 AC 110 ms
53,024 KB
testcase_14 AC 121 ms
54,316 KB
testcase_15 AC 121 ms
54,300 KB
testcase_16 AC 114 ms
53,036 KB
testcase_17 AC 124 ms
54,376 KB
testcase_18 AC 116 ms
52,524 KB
testcase_19 AC 124 ms
53,856 KB
testcase_20 AC 125 ms
53,948 KB
testcase_21 AC 123 ms
53,860 KB
testcase_22 AC 110 ms
53,140 KB
testcase_23 AC 121 ms
53,868 KB
testcase_24 AC 125 ms
54,172 KB
testcase_25 AC 124 ms
54,240 KB
testcase_26 AC 123 ms
54,024 KB
testcase_27 AC 121 ms
54,040 KB
testcase_28 AC 119 ms
54,572 KB
testcase_29 AC 122 ms
54,096 KB
testcase_30 AC 121 ms
54,192 KB
testcase_31 AC 120 ms
54,260 KB
testcase_32 AC 123 ms
54,108 KB
testcase_33 AC 123 ms
54,132 KB
testcase_34 AC 123 ms
54,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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");
		}

	}
}
0