結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
|
| 提出日時 | 2017-03-30 17:56:51 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 443 bytes |
| コンパイル時間 | 2,795 ms |
| コンパイル使用メモリ | 75,868 KB |
| 実行使用メモリ | 41,996 KB |
| 最終ジャッジ日時 | 2024-07-07 03:02:54 |
| 合計ジャッジ時間 | 4,932 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}
}
}