結果

問題 No.279 木の数え上げ
ユーザー pluto77
提出日時 2016-02-04 13:49:01
言語 Python2
(2.7.18)
結果
AC  
実行時間 242 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-10-14 15:24:40
合計ジャッジ時間 2,813 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_279

s=[]
s=raw_input()

count_t=0
count_r=0
count_e=0

for i in xrange(len(s)):
 if s[i]=='t':
  count_t+=1
 elif s[i]=='r':
  count_r+=1
 elif s[i]=='e':
  count_e+=1
 else:
  continue

res=min(count_t,count_r,count_e/2)
print res
 
0