結果

問題 No.279 木の数え上げ
ユーザー airis
提出日時 2015-09-18 22:27:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 7,424 KB
最終ジャッジ日時 2024-10-14 15:07:36
合計ジャッジ時間 2,744 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

s = raw_input()

a = ord('a')
t = ord('t')
r = ord('r')
e = ord('e')

freq = [0] * 30
for c in s:
  freq[ord(c) - a] += 1

print min(freq[t - a], min(freq[r - a], freq[e - a]/2))

0