結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2017-06-15 08:59:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 156 ms / 5,000 ms |
コード長 | 374 bytes |
コンパイル時間 | 1,974 ms |
コンパイル使用メモリ | 74,328 KB |
実行使用メモリ | 54,588 KB |
最終ジャッジ日時 | 2024-09-25 01:52:19 |
合計ジャッジ時間 | 4,351 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*; 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"); } } } }