結果

問題 No.279 木の数え上げ
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-03-10 01:08:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 9,868 KB
最終ジャッジ日時 2023-09-06 05:44:58
合計ジャッジ時間 1,538 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,916 KB
testcase_03 AC 16 ms
7,820 KB
testcase_04 AC 15 ms
7,856 KB
testcase_05 AC 15 ms
7,912 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 16 ms
7,956 KB
testcase_08 AC 15 ms
7,740 KB
testcase_09 AC 15 ms
7,812 KB
testcase_10 AC 20 ms
9,572 KB
testcase_11 AC 16 ms
8,284 KB
testcase_12 AC 20 ms
9,308 KB
testcase_13 AC 16 ms
8,048 KB
testcase_14 AC 22 ms
9,868 KB
testcase_15 AC 21 ms
9,592 KB
testcase_16 AC 21 ms
9,424 KB
testcase_17 AC 21 ms
9,720 KB
testcase_18 AC 19 ms
8,852 KB
testcase_19 AC 22 ms
9,796 KB
testcase_20 AC 22 ms
9,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inp = input()

tc = inp.count("t")
rc = inp.count("r")
ec = inp.count("e")

if 0 in [tc, rc, ec]:
    print(0)
elif ec == 1:
    print(0)
else:
    print(int(min([tc, rc, ec/2])))
0