結果

問題 No.279 木の数え上げ
ユーザー alcoholampalcoholamp
提出日時 2019-10-25 17:56:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 16,756 KB
最終ジャッジ日時 2023-09-27 23:18:15
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,800 KB
testcase_01 AC 13 ms
7,900 KB
testcase_02 AC 14 ms
7,784 KB
testcase_03 AC 12 ms
7,792 KB
testcase_04 AC 13 ms
7,828 KB
testcase_05 AC 13 ms
7,792 KB
testcase_06 AC 13 ms
7,828 KB
testcase_07 AC 13 ms
7,804 KB
testcase_08 AC 13 ms
7,804 KB
testcase_09 AC 13 ms
7,812 KB
testcase_10 AC 102 ms
15,832 KB
testcase_11 AC 35 ms
9,620 KB
testcase_12 AC 82 ms
13,320 KB
testcase_13 AC 26 ms
8,908 KB
testcase_14 AC 116 ms
16,756 KB
testcase_15 AC 97 ms
15,192 KB
testcase_16 AC 89 ms
14,596 KB
testcase_17 AC 105 ms
16,200 KB
testcase_18 AC 63 ms
12,120 KB
testcase_19 AC 103 ms
15,836 KB
testcase_20 AC 110 ms
16,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class Problem0279:
    def solve(this):
        res = {}
        for c in list(input()):
            res[c] = res.get(c, 0) + 1
        cnt = min(res.get('t', 0), res.get('r', 0), res.get('e', 0) // 2)
        print(cnt)

if __name__ == "__main__":
    problem = Problem0279()
    problem.solve()
0