結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー ks2mks2m
提出日時 2021-06-11 21:52:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 475 bytes
コンパイル時間 2,186 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 41,716 KB
最終ジャッジ日時 2024-05-08 17:32:30
合計ジャッジ時間 7,675 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
40,868 KB
testcase_01 AC 122 ms
41,604 KB
testcase_02 AC 118 ms
40,968 KB
testcase_03 AC 117 ms
41,352 KB
testcase_04 AC 108 ms
39,920 KB
testcase_05 AC 106 ms
40,312 KB
testcase_06 AC 106 ms
39,960 KB
testcase_07 AC 118 ms
41,716 KB
testcase_08 AC 112 ms
41,044 KB
testcase_09 AC 115 ms
41,340 KB
testcase_10 AC 115 ms
41,188 KB
testcase_11 AC 108 ms
39,924 KB
testcase_12 AC 117 ms
40,936 KB
testcase_13 AC 116 ms
41,028 KB
testcase_14 AC 120 ms
41,244 KB
testcase_15 AC 117 ms
41,204 KB
testcase_16 AC 118 ms
40,948 KB
testcase_17 AC 125 ms
41,156 KB
testcase_18 AC 119 ms
41,124 KB
testcase_19 AC 110 ms
40,696 KB
testcase_20 AC 119 ms
40,984 KB
testcase_21 AC 117 ms
41,140 KB
testcase_22 AC 105 ms
39,920 KB
testcase_23 AC 115 ms
41,500 KB
testcase_24 AC 112 ms
40,212 KB
testcase_25 AC 109 ms
40,540 KB
testcase_26 AC 117 ms
41,000 KB
testcase_27 AC 115 ms
41,432 KB
testcase_28 AC 119 ms
41,104 KB
testcase_29 AC 120 ms
41,220 KB
testcase_30 AC 121 ms
41,192 KB
testcase_31 AC 116 ms
40,844 KB
testcase_32 AC 118 ms
41,160 KB
testcase_33 AC 117 ms
41,464 KB
testcase_34 AC 114 ms
41,124 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