結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー ks2mks2m
提出日時 2021-06-11 21:52:51
言語 Java19
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 475 bytes
コンパイル時間 1,874 ms
コンパイル使用メモリ 71,812 KB
実行使用メモリ 56,404 KB
最終ジャッジ日時 2023-08-21 12:13:49
合計ジャッジ時間 7,348 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,336 KB
testcase_01 AC 117 ms
56,404 KB
testcase_02 AC 121 ms
55,704 KB
testcase_03 AC 118 ms
55,500 KB
testcase_04 AC 119 ms
55,880 KB
testcase_05 AC 118 ms
56,016 KB
testcase_06 AC 117 ms
55,932 KB
testcase_07 AC 118 ms
55,916 KB
testcase_08 AC 119 ms
55,476 KB
testcase_09 AC 117 ms
55,960 KB
testcase_10 AC 119 ms
55,872 KB
testcase_11 AC 119 ms
56,256 KB
testcase_12 AC 119 ms
55,956 KB
testcase_13 AC 118 ms
56,316 KB
testcase_14 AC 119 ms
55,972 KB
testcase_15 AC 119 ms
55,672 KB
testcase_16 AC 119 ms
55,872 KB
testcase_17 AC 119 ms
56,320 KB
testcase_18 AC 119 ms
56,076 KB
testcase_19 AC 120 ms
56,012 KB
testcase_20 AC 119 ms
56,304 KB
testcase_21 AC 119 ms
56,240 KB
testcase_22 AC 117 ms
55,864 KB
testcase_23 AC 122 ms
55,976 KB
testcase_24 AC 120 ms
56,004 KB
testcase_25 AC 119 ms
56,028 KB
testcase_26 AC 121 ms
56,184 KB
testcase_27 AC 121 ms
56,072 KB
testcase_28 AC 119 ms
55,716 KB
testcase_29 AC 118 ms
56,316 KB
testcase_30 AC 118 ms
55,936 KB
testcase_31 AC 117 ms
55,840 KB
testcase_32 AC 118 ms
56,264 KB
testcase_33 AC 119 ms
55,988 KB
testcase_34 AC 121 ms
56,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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