結果
| 問題 | No.418 ミンミンゼミ |
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-13 16:50:06 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 42,756 KB |
| 実行使用メモリ | 9,188 KB |
| 最終ジャッジ日時 | 2026-07-07 02:22:28 |
| 合計ジャッジ時間 | 1,695 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(){
// 入力された文字列
char str[100];
scanf("%s",&str);
// 入力された文字列の文字数
int len = strlen(str);
// 蝉のなき声をカウントする
int count = 0;
for(int i = 0;i < len;i++){
if(str[i] == 'm' && str[i + 1] == 'i'){
count++;
}
}
printf("%d",count);
}
sasa