結果

問題 No.264 じゃんけん
ユーザー Flere0114Flere0114
提出日時 2016-02-10 14:32:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 426 bytes
コンパイル時間 3,301 ms
コンパイル使用メモリ 77,732 KB
実行使用メモリ 57,792 KB
最終ジャッジ日時 2023-10-21 20:40:09
合計ジャッジ時間 5,171 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,792 KB
testcase_01 AC 132 ms
57,396 KB
testcase_02 AC 132 ms
57,308 KB
testcase_03 AC 133 ms
57,532 KB
testcase_04 AC 133 ms
57,412 KB
testcase_05 AC 133 ms
57,516 KB
testcase_06 AC 134 ms
57,432 KB
testcase_07 AC 131 ms
57,528 KB
testcase_08 AC 133 ms
57,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No264 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();

        if(a == b){
            System.out.println("Drew");
        }else if(a - b == -1 || a - b == 2){
            System.out.println("Won");
        }else{
            System.out.println("Lost");
        }
    }
}
0