結果

問題 No.418 ミンミンゼミ
ユーザー kohei2019kohei2019
提出日時 2022-01-23 13:21:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 1,000 ms
コード長 270 bytes
コンパイル時間 2,300 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 71,416 KB
最終ジャッジ日時 2023-08-19 18:01:12
合計ジャッジ時間 5,975 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,212 KB
testcase_01 AC 63 ms
71,396 KB
testcase_02 AC 65 ms
71,172 KB
testcase_03 AC 63 ms
71,292 KB
testcase_04 AC 63 ms
71,228 KB
testcase_05 AC 66 ms
71,320 KB
testcase_06 AC 62 ms
71,324 KB
testcase_07 AC 66 ms
71,264 KB
testcase_08 AC 67 ms
70,948 KB
testcase_09 AC 67 ms
70,992 KB
testcase_10 AC 64 ms
71,416 KB
testcase_11 AC 64 ms
71,172 KB
testcase_12 AC 64 ms
71,108 KB
testcase_13 AC 62 ms
71,356 KB
testcase_14 AC 63 ms
71,188 KB
testcase_15 AC 63 ms
71,264 KB
testcase_16 AC 64 ms
71,248 KB
testcase_17 AC 65 ms
70,944 KB
testcase_18 AC 62 ms
71,320 KB
testcase_19 AC 64 ms
71,172 KB
testcase_20 AC 62 ms
71,284 KB
testcase_21 AC 63 ms
71,316 KB
testcase_22 AC 65 ms
71,124 KB
testcase_23 AC 65 ms
70,936 KB
testcase_24 AC 60 ms
71,256 KB
testcase_25 AC 63 ms
71,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
cnt = 0
n = 0
for i in S:
    if n == 0 and i == 'm':
        n += 1
    elif n == 1 and i == 'i':
        n += 1
    elif n == 2 and i == '-':
        continue
    elif n == 2 and i == 'n':
        cnt += 1
        n = 0
    else:
        n = 0
print(cnt)
0