結果

問題 No.279 木の数え上げ
ユーザー 初見わこつです
提出日時 2015-09-21 12:41:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 476 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 15,012 KB
最終ジャッジ日時 2024-10-14 15:12:43
合計ジャッジ時間 1,623 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3

# This problem is http://yukicoder.me/problems/531

def count_char(char, string):
    return len(string.split(char)) - 1

first_line  = input()
# first_line  = 'takahashikunlovesyukicoder'
string      = first_line

length_list = []
length_list.append(count_char(char='t', string=string))
length_list.append(count_char(char='r', string=string))
length_list.append(int(count_char(char='e', string=string) / 2))

print(min(length_list))

# print(length_list)
0