結果

問題 No.264 じゃんけん
ユーザー qorrnsmjqorrnsmj
提出日時 2022-07-14 17:59:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 368 bytes
コンパイル時間 3,578 ms
コンパイル使用メモリ 72,964 KB
実行使用メモリ 55,996 KB
最終ジャッジ日時 2023-09-08 08:38:02
合計ジャッジ時間 5,714 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,684 KB
testcase_01 AC 127 ms
55,996 KB
testcase_02 AC 125 ms
55,768 KB
testcase_03 AC 127 ms
55,556 KB
testcase_04 AC 126 ms
55,872 KB
testcase_05 AC 127 ms
55,908 KB
testcase_06 AC 124 ms
55,716 KB
testcase_07 AC 123 ms
55,700 KB
testcase_08 AC 126 ms
55,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class no264 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        String str;

        if (N == K) str = "Drew";
        else if ((N + 1) % 3 == K) str = "Won";
        else str = "Lost";
        System.out.println(str);
    }
}
0