結果

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

ソースコード

diff #
raw source code

#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