結果

問題 No.418 ミンミンゼミ
ユーザー CroweaCrowea
提出日時 2019-01-24 13:54:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 779 ms
コンパイル使用メモリ 63,284 KB
実行使用メモリ 26,492 KB
最終ジャッジ日時 2023-10-14 09:38:17
合計ジャッジ時間 4,703 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
26,492 KB
testcase_01 AC 99 ms
24,364 KB
testcase_02 AC 98 ms
24,440 KB
testcase_03 AC 97 ms
24,380 KB
testcase_04 AC 98 ms
24,644 KB
testcase_05 AC 98 ms
24,580 KB
testcase_06 AC 98 ms
24,380 KB
testcase_07 AC 98 ms
22,412 KB
testcase_08 AC 99 ms
24,412 KB
testcase_09 AC 97 ms
24,476 KB
testcase_10 AC 98 ms
24,364 KB
testcase_11 AC 98 ms
24,376 KB
testcase_12 AC 97 ms
24,448 KB
testcase_13 AC 98 ms
24,556 KB
testcase_14 AC 96 ms
22,448 KB
testcase_15 AC 97 ms
24,400 KB
testcase_16 AC 96 ms
24,816 KB
testcase_17 AC 96 ms
24,588 KB
testcase_18 AC 98 ms
24,460 KB
testcase_19 AC 97 ms
24,276 KB
testcase_20 AC 97 ms
24,480 KB
testcase_21 AC 96 ms
22,392 KB
testcase_22 AC 96 ms
24,504 KB
testcase_23 AC 96 ms
26,284 KB
testcase_24 AC 96 ms
24,380 KB
testcase_25 AC 97 ms
24,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Text.RegularExpressions;

class Program
{
    const string SEMI = @"mi(-)*n";
    static void Main(string[] args)
    {
        var input = Console.ReadLine();
        var rgx = new Regex(SEMI);
        var mi_n_count = Regex.Matches(input, SEMI).Count;
        Console.WriteLine(mi_n_count);
    }
}
0