結果

問題 No.8 N言っちゃダメゲーム
ユーザー NoNo
提出日時 2015-08-09 11:11:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 1,043 bytes
コンパイル時間 2,283 ms
コンパイル使用メモリ 105,064 KB
実行使用メモリ 22,800 KB
最終ジャッジ日時 2023-09-25 07:27:47
合計ジャッジ時間 3,762 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,648 KB
testcase_01 AC 57 ms
20,684 KB
testcase_02 AC 57 ms
22,800 KB
testcase_03 AC 58 ms
20,600 KB
testcase_04 AC 58 ms
20,824 KB
testcase_05 AC 58 ms
20,660 KB
testcase_06 AC 59 ms
22,712 KB
testcase_07 AC 59 ms
18,748 KB
testcase_08 AC 60 ms
20,668 KB
testcase_09 AC 60 ms
20,652 KB
testcase_10 AC 59 ms
20,672 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;
using System.Text;
using System.Threading.Tasks;

namespace foryuki
{
    class Program
    {
        static void Main(string[] args)
        {
            int p = int.Parse(Console.ReadLine());
            var li = new List<string>();

            for (int i = 0; i < p; i++)
            {
                string[] s = Console.ReadLine().Split();
                li.Add(((int.Parse(s[0]) - 1) % (int.Parse(s[1]) + 1) == 0) ? "Lose" : "Win");
            }

            foreach (var item in li) Console.WriteLine(item);
        }

        //-------------------------------------------------------------

        static int[] ConvertStringArrayToIntArray(string[] array)
        {
            return Array.ConvertAll(array, str => int.Parse(str));
        }

        static List<int> ConvertStringArrayToIntList(string[] str)
        {
            var list = new List<int>();
            foreach (var c in str) list.Add(int.Parse(c));
            return list;
        }
    }
}
0