結果
| 問題 | No.8 N言っちゃダメゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-30 17:56:51 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 5,000 ms |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 3,756 ms |
| コンパイル使用メモリ | 82,964 KB |
| 実行使用メモリ | 42,472 KB |
| 最終ジャッジ日時 | 2026-03-28 17:16:33 |
| 合計ジャッジ時間 | 4,233 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.Scanner;
public class No21game {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int P = s.nextInt();
int[][] nk = new int[P][2];
for(int i = 0;i < P;i++){
nk[i][0] = s.nextInt();
nk[i][1] = s.nextInt();
}
s.close();
for(int i =0; i < P;i++){
if((nk[i][0] - 1) % (nk[i][1]+1) == 0){
System.out.println("Lose");
}else{
System.out.println("Win");
}
}
}
}