結果
問題 |
No.418 ミンミンゼミ
|
ユーザー |
![]() |
提出日時 | 2018-09-26 19:47:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 1,687 ms |
コンパイル使用メモリ | 167,696 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 23:40:29 |
合計ジャッジ時間 | 2,346 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int counter = 0; int rel =0; for(int i=0; i < s.size(); i++){ if(s[i] == '-'){ counter = 0; } if(s[i] == 'm' || s[i] == 'i' || s[i] == 'n') counter++; if(counter == 3) rel++; } cout << rel << endl; }