結果

問題 No.279 木の数え上げ
ユーザー lunaticcrylunaticcry
提出日時 2016-06-06 23:29:17
言語 Python2
(2.7.18)
結果
AC  
実行時間 172 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 7,424 KB
最終ジャッジ日時 2024-04-22 16:21:15
合計ジャッジ時間 2,320 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,272 KB
testcase_01 AC 10 ms
6,272 KB
testcase_02 AC 11 ms
6,144 KB
testcase_03 AC 12 ms
6,272 KB
testcase_04 AC 11 ms
6,272 KB
testcase_05 AC 11 ms
6,272 KB
testcase_06 AC 10 ms
6,144 KB
testcase_07 AC 10 ms
6,016 KB
testcase_08 AC 10 ms
6,144 KB
testcase_09 AC 10 ms
6,144 KB
testcase_10 AC 159 ms
7,168 KB
testcase_11 AC 43 ms
6,528 KB
testcase_12 AC 109 ms
6,912 KB
testcase_13 AC 28 ms
6,272 KB
testcase_14 AC 172 ms
7,296 KB
testcase_15 AC 143 ms
7,168 KB
testcase_16 AC 130 ms
6,912 KB
testcase_17 AC 159 ms
7,424 KB
testcase_18 AC 86 ms
6,784 KB
testcase_19 AC 155 ms
7,168 KB
testcase_20 AC 167 ms
7,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

S = raw_input()
tree = [0] * 3

for i in S:
    if i == 't':
        tree[0] += 1
    elif i == 'e':
         tree[1] += 1
    elif i == 'r':
        tree[2] += 1

tree[1] /= 2
print min(tree)
0