結果
問題 |
No.1129 Rating じゃんけん
|
ユーザー |
|
提出日時 | 2020-08-08 03:51:29 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 610 bytes |
コンパイル時間 | 2,731 ms |
コンパイル使用メモリ | 75,044 KB |
実行使用メモリ | 37,140 KB |
最終ジャッジ日時 | 2024-09-25 06:50:09 |
合計ジャッジ時間 | 3,992 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
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"); } } }