結果

問題 No.264 じゃんけん
ユーザー nishimitnishimit
提出日時 2018-07-04 14:29:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 398 bytes
コンパイル時間 3,288 ms
コンパイル使用メモリ 72,708 KB
実行使用メモリ 56,268 KB
最終ジャッジ日時 2023-09-13 17:31:21
合計ジャッジ時間 4,944 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,268 KB
testcase_01 AC 121 ms
56,268 KB
testcase_02 AC 122 ms
55,764 KB
testcase_03 AC 123 ms
55,848 KB
testcase_04 AC 124 ms
56,028 KB
testcase_05 AC 123 ms
56,056 KB
testcase_06 AC 122 ms
55,528 KB
testcase_07 AC 122 ms
55,768 KB
testcase_08 AC 121 ms
55,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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