結果

問題 No.418 ミンミンゼミ
ユーザー norioc
提出日時 2016-09-22 14:46:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 508 bytes
コンパイル時間 1,125 ms
コンパイル使用メモリ 107,760 KB
実行使用メモリ 22,656 KB
最終ジャッジ日時 2024-07-16 01:25:45
合計ジャッジ時間 3,991 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.RegularExpressions;

class Program {
    static int ReadInt() { return int.Parse(Console.ReadLine()); }
    static int[] ReadInts() { return Console.ReadLine().Split().Select(int.Parse).ToArray(); }
    static string[] ReadStrings() { return Console.ReadLine().Split(); }

    static void Main() {
        var s = Console.ReadLine();

        var ss = Regex.Matches(s, "mi-*n");
        Console.WriteLine(ss.Count);
    }
}
0