結果
| 問題 | No.418 ミンミンゼミ |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2016-09-09 22:23:12 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 73,968 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-30 16:37:33 |
| 合計ジャッジ時間 | 1,626 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include<iostream>
#include<string>
#include<numeric>
int main() {
std::string s;
std::cin >> s;
int count = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'm') {
if (s[i+1] != 'i') break;
i++;
while (s[i + 1] == '-')i++;
if (s[i + 1] == 'n') count++;
}
}
std::cout << count << std::endl;
return 0;
}
hanorver