結果

問題 No.8 N言っちゃダメゲーム
ユーザー the10hoursthe10hours
提出日時 2015-06-09 08:40:44
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,224 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 104,172 KB
実行使用メモリ 22,908 KB
最終ジャッジ日時 2023-09-20 20:08:03
合計ジャッジ時間 3,420 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yukicoder
{
    class yc
    {
        /// <summary>
        /// 12,5 WIN 12/(5+1)=2...0
        /// 40,6 WIN 40/(6+1)=5...5
        /// 3,2 WIN 3/(2+1)=1...0
        /// 5,2 WIN 5/(2+1)=1...2
        /// 6,2 WIN 6/(2+1)=2...0
        /// 8,2 WIN 8/(2+1)=2...2
        /// 4,3 WIN 4/(3+1)=1...0
        /// 
        /// 21,3 LOSE 21/(3+1)=5...1
        /// 100,8 LOSE 100/(8+1)=11...1
        /// 4,2 LOSE 4/(2+1)=1...1
        /// 7,2 LOSE 7/(2+1)=2...1
        /// 5,3 LOSE 5/(3+1)=1...1
        /// </summary>
        static void Main()
        {
            int P = int.Parse(Console.ReadLine());
            int[] N = new int[P];
            int[] K = new int[P];
            for (int i = 0; i < P; i++)
            {
                string[] str = Console.ReadLine().Split(' ');
                N[i] = int.Parse(str[0]);
                K[i] = int.Parse(str[1]);
            }

            for (int i = 0; i < P; i++)
            {
                if (N[i] % (K[i] + 1) == 1)
                    Console.WriteLine("LOSE");
                else
                    Console.WriteLine("WIN");
            }
        }
    }
}
0