結果

問題 No.264 じゃんけん
ユーザー arito_asuarito_asu
提出日時 2020-07-04 17:34:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 3,492 ms
コンパイル使用メモリ 74,144 KB
実行使用メモリ 57,664 KB
最終ジャッジ日時 2023-10-19 09:25:08
合計ジャッジ時間 5,018 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
57,392 KB
testcase_01 AC 141 ms
57,664 KB
testcase_02 AC 138 ms
57,360 KB
testcase_03 AC 135 ms
57,452 KB
testcase_04 AC 136 ms
57,332 KB
testcase_05 AC 135 ms
57,600 KB
testcase_06 AC 138 ms
57,420 KB
testcase_07 AC 138 ms
57,336 KB
testcase_08 AC 142 ms
57,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        String[] hand = new String[3];
        hand[0] = "Drew";
        hand[1] = "Won";
        hand[2] = "Lost";
        System.out.println(hand[(k-n+3)%3]);
    }
}
0