結果
| 問題 | No.418 ミンミンゼミ |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2022-08-08 20:31:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 1,000 ms |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 736 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-07 11:19:59 |
| 合計ジャッジ時間 | 7,678 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
import sys
readline=sys.stdin.readline
lst=[]
ans=0
for s in readline().rstrip():
if len(lst)==0 and s=="m":
lst.append(s)
elif len(lst)==1 and s=="i":
lst.append(s)
elif len(lst)==2 and s=="n":
lst.append(s)
if len(lst)==3:
ans+=1
lst=[]
print(ans)
vwxyz