結果

問題 No.279 木の数え上げ
ユーザー U SU S
提出日時 2020-02-08 10:25:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 344 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 11,716 KB
実行使用メモリ 11,824 KB
最終ジャッジ日時 2023-10-26 00:45:49
合計ジャッジ時間 4,980 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,892 KB
testcase_01 AC 29 ms
9,888 KB
testcase_02 AC 29 ms
9,892 KB
testcase_03 AC 29 ms
9,888 KB
testcase_04 AC 29 ms
9,888 KB
testcase_05 AC 29 ms
9,892 KB
testcase_06 AC 29 ms
9,888 KB
testcase_07 AC 29 ms
9,888 KB
testcase_08 AC 29 ms
9,892 KB
testcase_09 AC 29 ms
9,888 KB
testcase_10 AC 308 ms
11,620 KB
testcase_11 AC 92 ms
10,264 KB
testcase_12 AC 218 ms
11,132 KB
testcase_13 AC 64 ms
10,036 KB
testcase_14 AC 344 ms
11,824 KB
testcase_15 AC 278 ms
11,584 KB
testcase_16 AC 276 ms
11,340 KB
testcase_17 AC 311 ms
11,708 KB
testcase_18 AC 180 ms
10,808 KB
testcase_19 AC 304 ms
11,668 KB
testcase_20 AC 326 ms
11,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t_count = 0
r_count = 0
e_count = 0
for i in range(len(s)):
    if s[i] == "t":
        t_count += 1
    elif s[i] == "r":
        r_count += 1
    elif s[i] == "e":
        e_count += 1
print(min(t_count, r_count, e_count//2))
0