結果

問題 No.8 N言っちゃダメゲーム
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-18 14:47:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 154 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 3,179 ms
コンパイル使用メモリ 71,932 KB
実行使用メモリ 56,384 KB
最終ジャッジ日時 2023-09-06 18:20:43
合計ジャッジ時間 5,397 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,476 KB
testcase_01 AC 128 ms
55,680 KB
testcase_02 AC 128 ms
55,940 KB
testcase_03 AC 154 ms
56,332 KB
testcase_04 AC 153 ms
56,384 KB
testcase_05 AC 151 ms
56,300 KB
testcase_06 AC 151 ms
55,816 KB
testcase_07 AC 150 ms
55,864 KB
testcase_08 AC 150 ms
55,968 KB
testcase_09 AC 149 ms
56,004 KB
testcase_10 AC 142 ms
55,988 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();
			if(N % (K+1) == 1) {
				System.out.println("Lose");
			}else {
				System.out.println("Win");
			}
		}
	}
}
0