結果

問題 No.279 木の数え上げ
ユーザー deepjugglingdeepjuggling
提出日時 2023-02-12 08:21:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 9,912 KB
最終ジャッジ日時 2023-09-23 01:43:51
合計ジャッジ時間 2,952 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,716 KB
testcase_01 AC 17 ms
7,884 KB
testcase_02 AC 16 ms
7,920 KB
testcase_03 AC 15 ms
7,948 KB
testcase_04 AC 16 ms
7,772 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 AC 16 ms
7,808 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 15 ms
7,896 KB
testcase_09 AC 15 ms
7,776 KB
testcase_10 AC 158 ms
9,580 KB
testcase_11 AC 46 ms
8,284 KB
testcase_12 AC 113 ms
9,124 KB
testcase_13 AC 33 ms
8,144 KB
testcase_14 AC 170 ms
9,876 KB
testcase_15 AC 143 ms
9,744 KB
testcase_16 AC 129 ms
9,340 KB
testcase_17 AC 157 ms
9,728 KB
testcase_18 AC 88 ms
8,852 KB
testcase_19 AC 153 ms
9,772 KB
testcase_20 AC 164 ms
9,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
#s = list(s)
#x = Counter(s)
x = [0]*3
for i in s:
    if i == "t":
        x[0] += 1
    elif i == "r":
        x[1] += 1
    elif i == "e":
        x[2] += 1
x[2] //= 2
print(min(x))
0