結果

問題 No.8 N言っちゃダメゲーム
ユーザー m2543315647m2543315647
提出日時 2015-05-13 09:24:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 158 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 3,597 ms
コンパイル使用メモリ 77,952 KB
実行使用メモリ 42,976 KB
最終ジャッジ日時 2023-09-20 04:58:53
合計ジャッジ時間 6,106 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
39,376 KB
testcase_01 AC 125 ms
42,976 KB
testcase_02 AC 125 ms
39,480 KB
testcase_03 AC 151 ms
40,160 KB
testcase_04 AC 151 ms
39,624 KB
testcase_05 AC 158 ms
39,768 KB
testcase_06 AC 149 ms
39,516 KB
testcase_07 AC 150 ms
39,600 KB
testcase_08 AC 157 ms
39,708 KB
testcase_09 AC 150 ms
40,536 KB
testcase_10 AC 149 ms
40,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No8 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int p = sc.nextInt();
        for (int i = 0; i < p; i++) {
            int n = sc.nextInt();
            int k = sc.nextInt();
            System.out.println( n % (k + 1) != 1?"Win":"Lose");
        }
    }
}
0