結果

問題 No.279 木の数え上げ
コンテスト
ユーザー Mamonbo
提出日時 2015-10-03 18:27:30
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 476 ms / 2,000 ms
コード長 252 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 540 ms
コンパイル使用メモリ 20,952 KB
実行使用メモリ 17,116 KB
最終ジャッジ日時 2026-05-02 01:40:25
合計ジャッジ時間 6,426 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding=UTF-8
#並び換えが出来るのなら楽なはず

S=input()
hindo={'t':0,'r':0,'e':0}

for moji in S:
    hindo[moji]= (hindo[moji] if moji in hindo else 0)+1

print(min(hindo['t'],hindo['r'],hindo['e']//2))#eは2個必要なことに注意
0