結果

問題 No.1129 Rating じゃんけん
ユーザー tentententen
提出日時 2020-08-17 23:05:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 547 bytes
コンパイル時間 1,672 ms
コンパイル使用メモリ 74,436 KB
実行使用メモリ 54,264 KB
最終ジャッジ日時 2024-04-19 19:17:12
合計ジャッジ時間 4,371 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
52,940 KB
testcase_01 AC 105 ms
53,100 KB
testcase_02 AC 108 ms
53,900 KB
testcase_03 AC 105 ms
52,892 KB
testcase_04 AC 119 ms
54,172 KB
testcase_05 AC 105 ms
53,064 KB
testcase_06 AC 106 ms
53,116 KB
testcase_07 AC 106 ms
53,584 KB
testcase_08 AC 107 ms
53,688 KB
testcase_09 AC 115 ms
54,264 KB
testcase_10 AC 108 ms
53,208 KB
testcase_11 AC 108 ms
53,980 KB
testcase_12 AC 106 ms
52,728 KB
testcase_13 AC 115 ms
53,856 KB
testcase_14 AC 98 ms
52,584 KB
testcase_15 AC 103 ms
52,760 KB
testcase_16 AC 101 ms
52,836 KB
testcase_17 AC 106 ms
53,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();
		if (a > c) {
		    System.out.println("null");
		} else if (a < c) {
		    System.out.println("tRue");
		} else {
		    if (b == d) {
		        System.out.println("Draw");
		    } else if (b - d == 1 || b - d == -2) {
		        System.out.println("tRue");
		    } else {
		        System.out.println("null");
		    }
		}
	}
}
0