結果

問題 No.264 じゃんけん
ユーザー ryunocchiryunocchi
提出日時 2019-04-07 00:23:47
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 474 bytes
コンパイル時間 2,459 ms
コンパイル使用メモリ 71,856 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-09-07 12:28:57
合計ジャッジ時間 3,928 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,976 KB
testcase_01 AC 125 ms
55,944 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 125 ms
55,992 KB
testcase_05 AC 125 ms
53,844 KB
testcase_06 AC 123 ms
55,668 KB
testcase_07 WA -
testcase_08 AC 123 ms
55,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a == b){
          System.out.println("Drew");
          return;
        }
        if(b-a < 0){
          if(a == 2 && b == 0) {
            System.out.println("Won");
            return;
          }else System.out.println("Lose");
        }else System.out.println("Won");
    }
}
0