結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
![]() |
提出日時 | 2018-02-18 14:47:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 171 ms / 5,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 3,382 ms |
コンパイル使用メモリ | 74,992 KB |
実行使用メモリ | 54,504 KB |
最終ジャッジ日時 | 2024-06-24 12:44:47 |
合計ジャッジ時間 | 5,800 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.Scanner; public class No8 { 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"); } } } }