結果
問題 |
No.418 ミンミンゼミ
|
ユーザー |
|
提出日時 | 2022-02-17 13:27:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 121 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-06-29 07:38:48 |
合計ジャッジ時間 | 2,126 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
s = input() pattern = ["m","i","n"] index=0 for si in s: if si==pattern[(index%3)]: index+=1 print(index//3)