結果

問題 No.279 木の数え上げ
ユーザー airisairis
提出日時 2015-09-18 22:27:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-04-22 16:00:43
合計ジャッジ時間 2,677 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,144 KB
testcase_01 AC 10 ms
6,016 KB
testcase_02 AC 11 ms
6,144 KB
testcase_03 AC 11 ms
6,144 KB
testcase_04 AC 11 ms
6,144 KB
testcase_05 AC 11 ms
6,144 KB
testcase_06 AC 11 ms
6,272 KB
testcase_07 AC 10 ms
6,144 KB
testcase_08 AC 10 ms
6,144 KB
testcase_09 AC 9 ms
6,016 KB
testcase_10 AC 169 ms
7,168 KB
testcase_11 AC 47 ms
6,272 KB
testcase_12 AC 122 ms
6,784 KB
testcase_13 AC 29 ms
6,144 KB
testcase_14 AC 186 ms
7,168 KB
testcase_15 AC 158 ms
7,168 KB
testcase_16 AC 144 ms
7,040 KB
testcase_17 AC 173 ms
7,296 KB
testcase_18 AC 93 ms
6,784 KB
testcase_19 AC 165 ms
7,168 KB
testcase_20 AC 184 ms
7,296 KB
権限があれば一括ダウンロードができます

ソースコード

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