結果

問題 No.8 N言っちゃダメゲーム
ユーザー fal_rndfal_rnd
提出日時 2017-04-03 18:04:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 153 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 2,992 ms
コンパイル使用メモリ 71,316 KB
実行使用メモリ 56,472 KB
最終ジャッジ日時 2023-09-22 11:33:30
合計ジャッジ時間 5,235 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,472 KB
testcase_01 AC 118 ms
55,476 KB
testcase_02 AC 119 ms
56,264 KB
testcase_03 AC 143 ms
55,808 KB
testcase_04 AC 153 ms
56,088 KB
testcase_05 AC 142 ms
56,092 KB
testcase_06 AC 144 ms
56,052 KB
testcase_07 AC 145 ms
55,900 KB
testcase_08 AC 143 ms
55,844 KB
testcase_09 AC 143 ms
55,860 KB
testcase_10 AC 145 ms
55,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static final Scanner s=new Scanner(System.in);

	public static void main(String args[]){
		for(int p=s.nextInt();p>0;p--) {
			int n=s.nextInt(),k=s.nextInt();
			//System.out.println((n-1)%(k+1));
			System.out.println((n-1)%(k+1)!=0?"Win":"Lose");
		}
	}
}
0