結果

問題 No.418 ミンミンゼミ
ユーザー koma3tabi3
提出日時 2018-03-16 14:59:30
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 58,720 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-16 02:32:54
合計ジャッジ時間 1,476 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
	string M;
	int ans=0;
	cin>>M;
	for(int i=0;i<M.size();i++)
	{
		if(M[i]=='m'){ans+=1;}
		else {};
	}
	cout<<ans<<endl;

	fflush(stdin);
	getchar();

}
0