結果

問題 No.8 N言っちゃダメゲーム
ユーザー 8130Tsk8130Tsk
提出日時 2015-07-30 21:59:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 152 ms / 5,000 ms
コード長 400 bytes
コンパイル時間 3,273 ms
コンパイル使用メモリ 73,096 KB
実行使用メモリ 56,520 KB
最終ジャッジ日時 2023-09-24 22:20:53
合計ジャッジ時間 5,830 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,432 KB
testcase_01 AC 127 ms
55,640 KB
testcase_02 AC 126 ms
55,592 KB
testcase_03 AC 149 ms
55,956 KB
testcase_04 AC 152 ms
56,132 KB
testcase_05 AC 149 ms
56,292 KB
testcase_06 AC 150 ms
56,520 KB
testcase_07 AC 148 ms
55,764 KB
testcase_08 AC 150 ms
56,060 KB
testcase_09 AC 150 ms
56,088 KB
testcase_10 AC 151 ms
55,996 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();
		int[] n = new int[p];
		int[] k = new int[p];
		
		for(int i=0; i < p;i++){
			n[i]=sc.nextInt();
			k[i]=sc.nextInt();
			
			if(n[i]%(k[i]+1) != 1){
				System.out.println("Win");
			}else{
				System.out.println("Lose");
			}
			
		}
	}

}
0