結果

問題 No.8 N言っちゃダメゲーム
ユーザー shohei
提出日時 2014-12-12 22:40:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 157 ms / 5,000 ms
コード長 480 bytes
コンパイル時間 3,285 ms
コンパイル使用メモリ 74,428 KB
実行使用メモリ 41,768 KB
最終ジャッジ日時 2024-06-11 21:02:11
合計ジャッジ時間 5,407 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main08 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int p = sc.nextInt();
        int n, k;

        for(int i = 0; i < p; i++){
            n = sc.nextInt();
            k = sc.nextInt();
            
            if((n-1) % (k+1) == 0)
                    System.out.println("Lose");
            else
                    System.out.println("Win");
        }
    }
}
0