結果

問題 No.279 木の数え上げ
ユーザー 👑 もぐら 3.0もぐら 3.0
提出日時 2023-11-14 14:13:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 214 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 18,760 KB
最終ジャッジ日時 2023-11-14 14:13:18
合計ジャッジ時間 3,370 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,856 KB
testcase_01 AC 33 ms
9,856 KB
testcase_02 AC 28 ms
9,856 KB
testcase_03 AC 27 ms
9,856 KB
testcase_04 AC 28 ms
9,856 KB
testcase_05 AC 28 ms
9,856 KB
testcase_06 AC 28 ms
9,856 KB
testcase_07 AC 28 ms
9,856 KB
testcase_08 AC 28 ms
9,856 KB
testcase_09 AC 27 ms
9,856 KB
testcase_10 AC 193 ms
18,080 KB
testcase_11 AC 65 ms
11,776 KB
testcase_12 AC 148 ms
15,532 KB
testcase_13 AC 48 ms
11,136 KB
testcase_14 AC 205 ms
18,760 KB
testcase_15 AC 169 ms
17,232 KB
testcase_16 AC 178 ms
16,584 KB
testcase_17 AC 209 ms
18,172 KB
testcase_18 AC 110 ms
14,172 KB
testcase_19 AC 214 ms
18,016 KB
testcase_20 AC 195 ms
18,664 KB
権限があれば一括ダウンロードができます

ソースコード

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