結果

問題 No.1129 Rating じゃんけん
ユーザー luv_catluv_cat
提出日時 2020-08-08 03:51:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 610 bytes
コンパイル時間 3,603 ms
コンパイル使用メモリ 74,608 KB
実行使用メモリ 53,384 KB
最終ジャッジ日時 2023-10-25 22:35:18
合計ジャッジ時間 5,532 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
53,380 KB
testcase_01 AC 49 ms
53,384 KB
testcase_02 AC 49 ms
53,372 KB
testcase_03 AC 50 ms
53,372 KB
testcase_04 AC 48 ms
53,368 KB
testcase_05 AC 49 ms
53,372 KB
testcase_06 AC 49 ms
53,368 KB
testcase_07 AC 49 ms
53,364 KB
testcase_08 AC 49 ms
53,372 KB
testcase_09 AC 49 ms
53,372 KB
testcase_10 AC 48 ms
53,368 KB
testcase_11 AC 49 ms
53,372 KB
testcase_12 AC 49 ms
53,372 KB
testcase_13 AC 48 ms
53,372 KB
testcase_14 AC 48 ms
53,364 KB
testcase_15 AC 49 ms
51,352 KB
testcase_16 AC 50 ms
53,368 KB
testcase_17 AC 50 ms
53,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line[] = br.readLine().split(" ");
        int b[] = new int[4];
        for(int i = 0; i < 4; i++){
            b[i] = Integer.parseInt(line[i]);
        }
        
        // Ratingジャンケン
        if(b[0] == b[2]){
            System.out.println(b[1]==b[3] ? "Draw" : (b[1]+1)%3==b[3] ? "null" : "tRue");
        }else{
            System.out.println(b[0] > b[2] ? "null" : "tRue");
        }
    }
}
0