結果

問題 No.279 木の数え上げ
ユーザー rocoderrocoder
提出日時 2017-05-20 23:40:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,760 KB
実行使用メモリ 14,468 KB
最終ジャッジ日時 2023-10-19 04:16:49
合計ジャッジ時間 4,166 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
14,468 KB
testcase_01 AC 30 ms
9,976 KB
testcase_02 AC 31 ms
9,976 KB
testcase_03 WA -
testcase_04 AC 29 ms
9,976 KB
testcase_05 AC 30 ms
9,976 KB
testcase_06 AC 30 ms
9,976 KB
testcase_07 AC 30 ms
9,976 KB
testcase_08 AC 30 ms
9,976 KB
testcase_09 AC 29 ms
9,976 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

S=list(input ())
T=0
R=0
E=0
for i in range(len(S)):
    if S[i]=="t":
        T+=1
    elif S[i]=="r":
        R+=1
    elif S[i]=="e":
        E+=1
    T*=2
    R*=2
    if T<R:
        M=T
    else:
        M=R
    if E<M:
        M=E
print (M//2)
0