結果

問題 No.418 ミンミンゼミ
ユーザー 明智重蔵明智重蔵
提出日時 2016-09-10 09:34:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 776 bytes
コンパイル時間 2,169 ms
コンパイル使用メモリ 103,332 KB
実行使用メモリ 26,456 KB
最終ジャッジ日時 2023-09-23 00:52:21
合計ジャッジ時間 5,857 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
24,400 KB
testcase_01 AC 97 ms
24,416 KB
testcase_02 AC 98 ms
24,452 KB
testcase_03 AC 97 ms
24,220 KB
testcase_04 AC 99 ms
26,424 KB
testcase_05 AC 97 ms
24,316 KB
testcase_06 AC 98 ms
26,352 KB
testcase_07 AC 97 ms
24,420 KB
testcase_08 AC 97 ms
24,236 KB
testcase_09 AC 97 ms
24,384 KB
testcase_10 AC 97 ms
24,568 KB
testcase_11 AC 97 ms
24,460 KB
testcase_12 AC 98 ms
24,732 KB
testcase_13 AC 97 ms
24,448 KB
testcase_14 AC 98 ms
24,332 KB
testcase_15 AC 98 ms
26,400 KB
testcase_16 AC 98 ms
24,300 KB
testcase_17 AC 96 ms
24,400 KB
testcase_18 AC 96 ms
24,580 KB
testcase_19 AC 96 ms
22,696 KB
testcase_20 AC 96 ms
22,472 KB
testcase_21 AC 96 ms
26,352 KB
testcase_22 AC 97 ms
24,336 KB
testcase_23 AC 98 ms
26,456 KB
testcase_24 AC 101 ms
24,492 KB
testcase_25 AC 98 ms
24,508 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.Text.RegularExpressions;

//YukiCoder418 ミンミンゼミ
//http://yukicoder.me/problems/no/418
class Program
{
    static string InputPattern = "InputX";

    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();

        if (InputPattern == "Input1") {
            WillReturn.Add("mi--nminminminmi-------n");
            //5
        }
        else {
            string wkStr;
            while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        }
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();
        string S = InputList[0];
        Console.WriteLine(Regex.Matches(S, "mi-*n").Count);
    }
}
0