結果

問題 No.8 N言っちゃダメゲーム
ユーザー HimatsubushinHimatsubushin
提出日時 2021-01-15 10:57:26
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 545 bytes
コンパイル時間 1,687 ms
コンパイル使用メモリ 101,328 KB
実行使用メモリ 22,824 KB
最終ジャッジ日時 2023-08-16 18:55:09
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
22,612 KB
testcase_01 AC 49 ms
20,780 KB
testcase_02 AC 48 ms
20,772 KB
testcase_03 AC 48 ms
20,708 KB
testcase_04 AC 48 ms
22,824 KB
testcase_05 AC 49 ms
20,688 KB
testcase_06 AC 48 ms
20,704 KB
testcase_07 AC 49 ms
22,728 KB
testcase_08 AC 48 ms
22,824 KB
testcase_09 AC 49 ms
20,772 KB
testcase_10 AC 50 ms
20,720 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No._08
{
    class Program
    {
        static void Main(string[] args)
        {
            int p = int.Parse(Console.ReadLine());

            while (p-- > 0)
            {
                string[] input = Console.ReadLine().Split(' ');
                int n = int.Parse(input[0]);
                int k = int.Parse(input[1]);

                if ((n - 1) % (k + 1) > 0)
                    Console.WriteLine("Win");
                else
                    Console.WriteLine("Lose");
            }
        }
    }
}
0