結果

問題 No.8 N言っちゃダメゲーム
ユーザー shoheishohei
提出日時 2014-12-12 22:40:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 162 ms / 5,000 ms
コード長 480 bytes
コンパイル時間 3,838 ms
コンパイル使用メモリ 71,704 KB
実行使用メモリ 56,252 KB
最終ジャッジ日時 2023-09-02 14:24:04
合計ジャッジ時間 6,324 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,720 KB
testcase_01 AC 130 ms
55,776 KB
testcase_02 AC 131 ms
55,976 KB
testcase_03 AC 157 ms
56,252 KB
testcase_04 AC 162 ms
55,556 KB
testcase_05 AC 160 ms
55,844 KB
testcase_06 AC 155 ms
55,604 KB
testcase_07 AC 157 ms
55,792 KB
testcase_08 AC 156 ms
55,728 KB
testcase_09 AC 157 ms
55,880 KB
testcase_10 AC 155 ms
53,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main08 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int p = sc.nextInt();
        int n, k;

        for(int i = 0; i < p; i++){
            n = sc.nextInt();
            k = sc.nextInt();
            
            if((n-1) % (k+1) == 0)
                    System.out.println("Lose");
            else
                    System.out.println("Win");
        }
    }
}
0