結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-11 00:25:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 486 ms |
| コンパイル使用メモリ | 64,408 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-16 02:31:31 |
| 合計ジャッジ時間 | 1,170 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <utility>
#include <vector>
using namespace std;
int main(void)
{
string str;
cin >> str;
int a = 0;
int c = 0;
while((a=str.find("mi",a))!=-1)
{
c++;
a+=2;
}
cout << c << endl;
return 0;
}