結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2019-02-24 11:11:36 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 161 ms / 5,000 ms |
| コード長 | 432 bytes |
| コンパイル時間 | 2,301 ms |
| コンパイル使用メモリ | 73,900 KB |
| 実行使用メモリ | 42,052 KB |
| 最終ジャッジ日時 | 2024-12-21 08:28:01 |
| 合計ジャッジ時間 | 4,694 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int p = stdin.nextInt();
for (int time = 0; time < p; time++) {
int n = stdin.nextInt();
int k = stdin.nextInt();
String answer = (n - 1) % (k + 1) == 0 ? "Lose" : "Win";
System.out.println(answer);
}
}
}
neko_the_shadow