結果

問題 No.264 じゃんけん
ユーザー qorrnsmjqorrnsmj
提出日時 2022-07-14 18:04:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 5,126 ms
コンパイル使用メモリ 71,512 KB
実行使用メモリ 39,984 KB
最終ジャッジ日時 2023-09-08 08:45:56
合計ジャッジ時間 7,163 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
39,984 KB
testcase_01 AC 121 ms
39,096 KB
testcase_02 AC 124 ms
39,504 KB
testcase_03 AC 123 ms
39,068 KB
testcase_04 AC 122 ms
39,656 KB
testcase_05 AC 122 ms
39,272 KB
testcase_06 AC 120 ms
39,184 KB
testcase_07 AC 120 ms
39,780 KB
testcase_08 AC 118 ms
39,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class no264_1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        String[] str = {"Drew", "Won", "Lost"};
        System.out.println(str[(K-N+3)%3]);
    }
}
0