結果

問題 No.264 じゃんけん
ユーザー GrenacheGrenache
提出日時 2015-08-07 22:30:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 468 bytes
コンパイル時間 3,202 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 56,168 KB
最終ジャッジ日時 2023-09-25 06:05:19
合計ジャッジ時間 5,129 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,848 KB
testcase_01 AC 124 ms
55,828 KB
testcase_02 AC 124 ms
55,760 KB
testcase_03 AC 122 ms
55,864 KB
testcase_04 AC 123 ms
55,984 KB
testcase_05 AC 122 ms
55,736 KB
testcase_06 AC 122 ms
55,664 KB
testcase_07 AC 122 ms
56,008 KB
testcase_08 AC 124 ms
56,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder264 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();

        if (n == k) {
        	System.out.println("Drew");
        } else if ((n < 2 && n + 1 == k) || (n == 2 && k == 0)) {
        	System.out.println("Won");
        } else {
        	System.out.println("Lost");
        }

        sc.close();
    }
}
0