結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2020-06-24 16:44:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 1,886 ms |
コンパイル使用メモリ | 194,016 KB |
最終ジャッジ日時 | 2025-01-11 09:51:23 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){cin.tie(0),ios::sync_with_stdio(false);string s; cin>>s;string t;for(auto&&i:s)if(i!='-')t+=i;string a="min"s;auto pos=t.find(a);int ans=0;while(pos!=string::npos){++ans;pos=t.find(a,pos+a.size());}cout<<ans<<"\n"s;}