結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2018-04-11 15:15:40 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 1,000 ms |
コード長 | 424 bytes |
コンパイル時間 | 881 ms |
コンパイル使用メモリ | 107,564 KB |
実行使用メモリ | 22,528 KB |
最終ジャッジ日時 | 2024-07-16 02:33:52 |
合計ジャッジ時間 | 2,963 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.
ソースコード
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);}}