結果

問題 No.8 N言っちゃダメゲーム
ユーザー AreTrashAreTrash
提出日時 2016-04-16 07:53:18
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 520 bytes
コンパイル時間 864 ms
コンパイル使用メモリ 110,588 KB
実行使用メモリ 27,072 KB
最終ジャッジ日時 2024-04-15 02:10:04
合計ジャッジ時間 1,836 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
24,748 KB
testcase_01 AC 25 ms
24,968 KB
testcase_02 AC 24 ms
24,896 KB
testcase_03 AC 26 ms
24,968 KB
testcase_04 AC 27 ms
27,072 KB
testcase_05 AC 26 ms
25,008 KB
testcase_06 AC 26 ms
24,772 KB
testcase_07 AC 25 ms
25,236 KB
testcase_08 AC 25 ms
24,768 KB
testcase_09 AC 26 ms
24,880 KB
testcase_10 AC 26 ms
25,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

namespace No8_1{
    public class Program{
        public static void Main(string[] args){
            var cnt = int.Parse(Console.ReadLine());
            var input = new List<int>[cnt];

            for(var i = 0; i < cnt; i++)
                input[i] = Console.ReadLine().Split().ToList().ConvertAll(int.Parse);

            foreach(var i in input)
                Console.WriteLine((i[0] - 1) % (i[1] + 1) == 0 ? "Lose" : "Win");
        }
    }
}
0