結果

問題 No.264 じゃんけん
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-12 20:48:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 414 bytes
コンパイル時間 2,616 ms
コンパイル使用メモリ 72,552 KB
実行使用メモリ 55,936 KB
最終ジャッジ日時 2023-08-17 03:56:36
合計ジャッジ時間 4,107 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,548 KB
testcase_01 AC 126 ms
55,368 KB
testcase_02 AC 128 ms
55,728 KB
testcase_03 AC 127 ms
55,812 KB
testcase_04 AC 126 ms
55,936 KB
testcase_05 AC 126 ms
55,532 KB
testcase_06 AC 126 ms
55,660 KB
testcase_07 AC 128 ms
55,800 KB
testcase_08 AC 126 ms
55,624 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();
        int z = k-n;
        if(z==0){
            System.out.println("Drew");
        }else if(z==1 || z==-2){
            System.out.println("Won");
        }else{
            System.out.println("Lost");
        }
    }
}
0