結果

問題 No.1129 Rating じゃんけん
ユーザー luv_catluv_cat
提出日時 2020-08-08 03:53:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 730 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 74,480 KB
実行使用メモリ 53,244 KB
最終ジャッジ日時 2023-10-25 22:36:42
合計ジャッジ時間 3,617 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,244 KB
testcase_01 AC 51 ms
53,232 KB
testcase_02 AC 50 ms
51,184 KB
testcase_03 AC 52 ms
53,236 KB
testcase_04 AC 51 ms
53,220 KB
testcase_05 AC 52 ms
51,316 KB
testcase_06 AC 50 ms
53,228 KB
testcase_07 AC 52 ms
53,232 KB
testcase_08 AC 53 ms
53,224 KB
testcase_09 AC 51 ms
53,228 KB
testcase_10 AC 51 ms
53,224 KB
testcase_11 AC 52 ms
53,224 KB
testcase_12 AC 52 ms
53,224 KB
testcase_13 AC 52 ms
51,188 KB
testcase_14 AC 53 ms
53,220 KB
testcase_15 AC 53 ms
53,236 KB
testcase_16 AC 52 ms
53,164 KB
testcase_17 AC 51 ms
53,228 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{
            // 三項に変える
            if(b[0] > b[2]){
                System.out.println("null");
            }else{
                System.out.println("tRue");
            }
        }
    }
}
0