結果

問題 No.279 木の数え上げ
ユーザー yaoshimaxyaoshimax
提出日時 2016-05-13 12:44:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-04-22 16:19:48
合計ジャッジ時間 2,212 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,144 KB
testcase_01 AC 11 ms
6,144 KB
testcase_02 AC 11 ms
6,144 KB
testcase_03 AC 10 ms
6,144 KB
testcase_04 AC 9 ms
6,144 KB
testcase_05 AC 9 ms
6,144 KB
testcase_06 AC 9 ms
6,144 KB
testcase_07 AC 10 ms
6,144 KB
testcase_08 AC 10 ms
6,016 KB
testcase_09 AC 10 ms
6,016 KB
testcase_10 AC 147 ms
7,168 KB
testcase_11 AC 39 ms
6,528 KB
testcase_12 AC 102 ms
6,912 KB
testcase_13 AC 28 ms
6,144 KB
testcase_14 AC 159 ms
7,168 KB
testcase_15 AC 134 ms
7,168 KB
testcase_16 AC 121 ms
6,912 KB
testcase_17 AC 149 ms
7,296 KB
testcase_18 AC 81 ms
6,656 KB
testcase_19 AC 144 ms
7,040 KB
testcase_20 AC 156 ms
7,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=raw_input()
tcnt,rcnt,ecnt=0,0,0
for s in S:
    if s=='t':
        tcnt+=1
    if s=='r':
        rcnt+=1
    if s=='e':
        ecnt+=1
print min( tcnt, rcnt, ecnt/2 )
0