結果

問題 No.264 じゃんけん
ユーザー qorrnsmj
提出日時 2022-07-14 18:04:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 3,477 ms
コンパイル使用メモリ 74,448 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-06-26 01:56:00
合計ジャッジ時間 4,947 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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