結果

問題 No.279 木の数え上げ
ユーザー konabekonabe
提出日時 2017-12-16 21:38:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 10,016 KB
最終ジャッジ日時 2023-08-21 11:15:15
合計ジャッジ時間 3,223 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 15 ms
7,776 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 AC 15 ms
7,812 KB
testcase_05 AC 16 ms
7,812 KB
testcase_06 AC 15 ms
7,800 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 15 ms
7,984 KB
testcase_09 AC 15 ms
7,960 KB
testcase_10 AC 154 ms
9,700 KB
testcase_11 AC 46 ms
8,456 KB
testcase_12 AC 111 ms
9,180 KB
testcase_13 AC 34 ms
8,028 KB
testcase_14 AC 167 ms
10,016 KB
testcase_15 AC 140 ms
9,544 KB
testcase_16 AC 129 ms
9,348 KB
testcase_17 AC 156 ms
9,740 KB
testcase_18 AC 88 ms
8,852 KB
testcase_19 AC 153 ms
9,832 KB
testcase_20 AC 164 ms
9,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
t, r, e = 0, 0, 0
for s in S:
    if s == 't':
        t += 1
    elif s == 'r':
        r += 1
    elif s == 'e':
        e += 1

print(min(t, r, e//2))
0