結果

問題 No.418 ミンミンゼミ
ユーザー Pump0129Pump0129
提出日時 2018-04-11 15:15:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 424 bytes
コンパイル時間 2,001 ms
コンパイル使用メモリ 99,288 KB
実行使用メモリ 26,432 KB
最終ジャッジ日時 2023-09-23 02:08:08
合計ジャッジ時間 5,764 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
26,388 KB
testcase_01 AC 98 ms
22,280 KB
testcase_02 AC 97 ms
24,480 KB
testcase_03 AC 96 ms
24,364 KB
testcase_04 AC 96 ms
24,416 KB
testcase_05 AC 96 ms
24,360 KB
testcase_06 AC 96 ms
24,452 KB
testcase_07 AC 97 ms
24,316 KB
testcase_08 AC 96 ms
24,300 KB
testcase_09 AC 96 ms
26,432 KB
testcase_10 AC 95 ms
24,260 KB
testcase_11 AC 96 ms
22,228 KB
testcase_12 AC 96 ms
22,264 KB
testcase_13 AC 95 ms
24,336 KB
testcase_14 AC 97 ms
24,388 KB
testcase_15 AC 96 ms
24,212 KB
testcase_16 AC 99 ms
24,232 KB
testcase_17 AC 97 ms
26,388 KB
testcase_18 AC 96 ms
24,300 KB
testcase_19 AC 96 ms
24,460 KB
testcase_20 AC 97 ms
26,368 KB
testcase_21 AC 96 ms
24,148 KB
testcase_22 AC 96 ms
24,296 KB
testcase_23 AC 98 ms
24,536 KB
testcase_24 AC 98 ms
24,316 KB
testcase_25 AC 97 ms
24,396 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.Text.RegularExpressions;

class No418
{
    static void Main(string[] args) {
        string str = Console.ReadLine();
        Regex re = new Regex("mi-*n", RegexOptions.IgnoreCase | RegexOptions.Singleline);
        int count = 0;
        for (Match m = re.Match(str); m.Success; m = m.NextMatch())
        {
            count++;
        }
        Console.WriteLine(count);
    }
}
0