結果
問題 | No.418 ミンミンゼミ |
ユーザー |
![]() |
提出日時 | 2023-06-01 15:15:15 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 14:58:42 |
合計ジャッジ時間 | 1,058 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
#include <stdio.h>int main(){char S[101];int len, b = 0, count = 0;scanf("%s%n", &S, &len);for (int i = 0; i < len - 2; i++){if (S[i] == 'm'){count++;}}printf("%d", count);return 0;}