結果

問題 No.264 じゃんけん
ユーザー haru66nylonharu66nylon
提出日時 2019-02-27 22:20:40
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 668 bytes
コンパイル時間 2,821 ms
コンパイル使用メモリ 71,892 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2023-09-05 09:27:36
合計ジャッジ時間 4,946 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,532 KB
testcase_01 WA -
testcase_02 AC 130 ms
55,524 KB
testcase_03 WA -
testcase_04 AC 128 ms
55,808 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 129 ms
55,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int man1 = sc.nextInt();
        int man2 = sc.nextInt();
        
        if(man1 == man2){
            System.out.println("Drew");
        }else if(man1 > man2){
            if(man1 == 2 && man2 == 0){
                System.out.println("Lost");
            }else{
                System.out.println("Win");
            }
        }else{
            if(man1 == 0 && man2 == 2){
                System.out.println("Lost");
            }else{
                System.out.println("Win");
            }
        }
    }
}
0