結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-03 00:16:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 259 bytes |
| コンパイル時間 | 1,516 ms |
| コンパイル使用メモリ | 166,536 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 15:27:15 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
string s;cin>>s;
int ans=0;
bool f=false;
s+="###";
for(int i=0;i<s.size();i++){
if(s.substr(i,2)=="mi")f=1;
if(s[i]=='n')ans++,f=0;
}
cout<<ans<<endl;
}
cureskol