結果

問題 No.8 N言っちゃダメゲーム
ユーザー yuki2006
提出日時 2014-10-11 03:25:42
言語 Java
(openjdk 23)
結果
AC  
実行時間 178 ms / 5,000 ms
コード長 495 bytes
コンパイル時間 3,934 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 41,712 KB
最終ジャッジ日時 2024-12-30 08:32:20
合計ジャッジ時間 6,921 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki008 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int P = scanner.nextInt();
        for (int i = 0; i < P; i++) {
            int N = scanner.nextInt();
            int K = scanner.nextInt();
            if ((N - 1) % (K + 1) == 0) {
                System.out.println("Lose");
            } else {
                System.out.println("Win");
            }
        }
    }
}
0