結果

問題 No.8 N言っちゃダメゲーム
ユーザー 37zigen37zigen
提出日時 2016-03-09 17:32:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 5,000 ms
コード長 322 bytes
コンパイル時間 2,992 ms
コンパイル使用メモリ 73,940 KB
実行使用メモリ 57,744 KB
最終ジャッジ日時 2023-10-24 21:48:45
合計ジャッジ時間 5,177 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,424 KB
testcase_01 AC 132 ms
57,468 KB
testcase_02 AC 131 ms
57,472 KB
testcase_03 AC 156 ms
57,640 KB
testcase_04 AC 159 ms
57,588 KB
testcase_05 AC 160 ms
55,624 KB
testcase_06 AC 157 ms
57,744 KB
testcase_07 AC 160 ms
57,588 KB
testcase_08 AC 160 ms
57,644 KB
testcase_09 AC 157 ms
57,704 KB
testcase_10 AC 156 ms
57,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	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