結果

問題 No.279 木の数え上げ
ユーザー 👑 もぐら 3.0もぐら 3.0
提出日時 2023-11-14 14:13:00
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 190 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 122,912 KB
最終ジャッジ日時 2023-11-14 14:13:04
合計ジャッジ時間 3,229 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 AC 37 ms
53,460 KB
testcase_04 AC 41 ms
53,460 KB
testcase_05 AC 41 ms
53,460 KB
testcase_06 AC 37 ms
53,460 KB
testcase_07 AC 38 ms
53,460 KB
testcase_08 AC 37 ms
53,460 KB
testcase_09 AC 36 ms
53,460 KB
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
t_cnt=0
r_cnt=0
e_cnt=0

for s in S:
    if s=="t":
        t_cnt+=1
    elif s=="r":
        r_cnt+=1
    elif s=="e":
        e_cnt+=1

print(min(t_cnt,r_cnt,(e_cnt)//2))
0