結果

問題 No.279 木の数え上げ
ユーザー _KingdomOfMoray
提出日時 2019-12-16 09:05:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 13,440 KB
最終ジャッジ日時 2024-07-02 19:26:18
合計ジャッジ時間 1,691 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

t_count = s.count('t')
r_count = s.count('r')
e_count = s.count('e')

def min(a, b):
    return b if a >= b else a

max_tree = int(e_count / 2)
res = min(min(t_count, r_count), max_tree)

print(res)
0