結果

問題 No.418 ミンミンゼミ
ユーザー ondy_candyondy_candy
提出日時 2018-05-05 01:58:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 302 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 13,808 KB
最終ジャッジ日時 2023-09-23 02:08:56
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
13,480 KB
testcase_01 AC 68 ms
13,760 KB
testcase_02 AC 68 ms
13,512 KB
testcase_03 AC 69 ms
13,560 KB
testcase_04 AC 68 ms
13,580 KB
testcase_05 AC 69 ms
13,632 KB
testcase_06 AC 70 ms
13,508 KB
testcase_07 AC 68 ms
13,508 KB
testcase_08 AC 69 ms
13,656 KB
testcase_09 AC 69 ms
13,636 KB
testcase_10 AC 69 ms
13,632 KB
testcase_11 AC 69 ms
13,504 KB
testcase_12 AC 68 ms
13,480 KB
testcase_13 AC 69 ms
13,808 KB
testcase_14 AC 68 ms
13,540 KB
testcase_15 AC 67 ms
13,644 KB
testcase_16 AC 68 ms
13,652 KB
testcase_17 AC 69 ms
13,596 KB
testcase_18 AC 68 ms
13,552 KB
testcase_19 AC 68 ms
13,556 KB
testcase_20 AC 68 ms
13,544 KB
testcase_21 AC 68 ms
13,744 KB
testcase_22 AC 68 ms
13,480 KB
testcase_23 AC 69 ms
13,604 KB
testcase_24 AC 68 ms
13,476 KB
testcase_25 AC 68 ms
13,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

def main():

    s = input()
    
    result = judge(s)

    print(result)

def judge(s):
    """
    >>> judge('mi--nminminminmi-------n')
    5
    """

    result = re.findall("mi-*n",s)
    return len(result)

if __name__=='__main__':
    import doctest
    doctest.testmod()
    main()
0