結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2022-01-23 13:21:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-11-29 12:29:13 |
合計ジャッジ時間 | 2,553 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
S = input()cnt = 0n = 0for i in S:if n == 0 and i == 'm':n += 1elif n == 1 and i == 'i':n += 1elif n == 2 and i == '-':continueelif n == 2 and i == 'n':cnt += 1n = 0else:n = 0print(cnt)