結果

問題 No.264 じゃんけん
ユーザー cande398cande398
提出日時 2017-10-16 00:25:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 353 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 74,696 KB
実行使用メモリ 41,360 KB
最終ジャッジ日時 2024-04-28 22:12:02
合計ジャッジ時間 3,953 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,360 KB
testcase_01 AC 137 ms
40,968 KB
testcase_02 AC 135 ms
41,076 KB
testcase_03 AC 134 ms
41,076 KB
testcase_04 AC 135 ms
41,076 KB
testcase_05 AC 138 ms
41,188 KB
testcase_06 AC 137 ms
40,900 KB
testcase_07 AC 137 ms
41,312 KB
testcase_08 AC 134 ms
41,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    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(K-N == 1 || N == 2 && K == 0)System.out.println("Won");
        else System.out.println("Lost");
    }
}
0