結果

問題 No.264 じゃんけん
ユーザー kurobei72kurobei72
提出日時 2018-01-18 21:27:46
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 508 bytes
コンパイル時間 2,016 ms
コンパイル使用メモリ 71,464 KB
実行使用メモリ 56,364 KB
最終ジャッジ日時 2023-08-25 23:26:28
合計ジャッジ時間 4,191 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.Scanner;

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