結果

問題 No.279 木の数え上げ
ユーザー No-Ra
提出日時 2017-08-15 21:48:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 329 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 13,312 KB
最終ジャッジ日時 2024-10-13 11:01:50
合計ジャッジ時間 4,606 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

strt = 0
strr = 0
stre = 0
for i in range(len(S)):
    if S[i] == "t":
        strt += 1
    if S[i] == "r":
        strr += 1
    if S[i] == "e":
        stre += 1

count = 0
while strt >= 1 and stre >= 1 and stre >= 2:
    count += 1
    strt -= 1
    strr -= 1
    stre -= 2

print(count)
0