結果

問題 No.279 木の数え上げ
コンテスト
ユーザー yaoshimax
提出日時 2016-05-13 12:44:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 172 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 65 ms
コンパイル使用メモリ 7,844 KB
最終ジャッジ日時 2025-12-03 20:43:45
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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