結果

問題 No.8 N言っちゃダメゲーム
ユーザー tentententen
提出日時 2020-11-17 08:22:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 460 bytes
コンパイル時間 2,324 ms
コンパイル使用メモリ 71,680 KB
実行使用メモリ 56,328 KB
最終ジャッジ日時 2023-09-30 07:40:27
合計ジャッジ時間 4,734 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,968 KB
testcase_01 AC 121 ms
54,392 KB
testcase_02 AC 121 ms
55,844 KB
testcase_03 AC 138 ms
55,540 KB
testcase_04 AC 139 ms
55,896 KB
testcase_05 AC 139 ms
56,328 KB
testcase_06 AC 140 ms
55,852 KB
testcase_07 AC 140 ms
55,784 KB
testcase_08 AC 140 ms
55,800 KB
testcase_09 AC 141 ms
55,828 KB
testcase_10 AC 140 ms
56,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            if (sc.nextInt() % (sc.nextInt() + 1) == 1) {
                sb.append("Lose\n");
            } else {
                sb.append("Win\n");
            }
        }
        System.out.print(sb);
    }
}
0