結果
| 問題 | No.418 ミンミンゼミ |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2022-08-08 20:31:44 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 92 ms / 1,000 ms |
| + 833µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 21,340 KB |
| 実行使用メモリ | 15,788 KB |
| 最終ジャッジ日時 | 2026-08-30 20:10:42 |
| 合計ジャッジ時間 | 4,685 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_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