結果

問題 No.279 木の数え上げ
ユーザー ThetaTheta
提出日時 2022-10-24 14:41:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 11,036 KB
最終ジャッジ日時 2023-09-15 14:24:00
合計ジャッジ時間 2,844 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,324 KB
testcase_01 AC 19 ms
8,304 KB
testcase_02 AC 20 ms
8,412 KB
testcase_03 AC 19 ms
8,336 KB
testcase_04 AC 18 ms
8,412 KB
testcase_05 AC 19 ms
8,348 KB
testcase_06 AC 19 ms
8,296 KB
testcase_07 AC 18 ms
8,396 KB
testcase_08 AC 19 ms
8,404 KB
testcase_09 AC 19 ms
8,320 KB
testcase_10 AC 90 ms
10,928 KB
testcase_11 AC 36 ms
8,652 KB
testcase_12 AC 66 ms
10,024 KB
testcase_13 AC 27 ms
8,556 KB
testcase_14 AC 96 ms
10,932 KB
testcase_15 AC 83 ms
9,964 KB
testcase_16 AC 77 ms
9,792 KB
testcase_17 AC 89 ms
11,036 KB
testcase_18 AC 56 ms
9,200 KB
testcase_19 AC 88 ms
10,800 KB
testcase_20 AC 93 ms
10,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


def main():
    S = input()
    s_counter = Counter(S)
    print(min(s_counter["t"], s_counter["r"], s_counter["e"]//2))


if __name__ == "__main__":
    main()
0