結果

問題 No.279 木の数え上げ
ユーザー rocoderrocoder
提出日時 2017-06-04 17:26:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 289 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 19,688 KB
最終ジャッジ日時 2023-10-22 04:21:53
合計ジャッジ時間 3,665 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,036 KB
testcase_01 AC 26 ms
10,036 KB
testcase_02 AC 26 ms
10,036 KB
testcase_03 AC 25 ms
10,036 KB
testcase_04 AC 25 ms
10,036 KB
testcase_05 AC 27 ms
10,036 KB
testcase_06 AC 28 ms
10,036 KB
testcase_07 AC 28 ms
10,036 KB
testcase_08 AC 28 ms
10,036 KB
testcase_09 AC 27 ms
10,036 KB
testcase_10 AC 280 ms
18,112 KB
testcase_11 AC 85 ms
11,704 KB
testcase_12 AC 177 ms
15,512 KB
testcase_13 AC 53 ms
11,220 KB
testcase_14 AC 265 ms
19,688 KB
testcase_15 AC 229 ms
17,136 KB
testcase_16 AC 203 ms
16,548 KB
testcase_17 AC 255 ms
19,032 KB
testcase_18 AC 140 ms
14,228 KB
testcase_19 AC 237 ms
17,844 KB
testcase_20 AC 289 ms
18,552 KB
権限があれば一括ダウンロードができます

ソースコード

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
m=t
if m>r:
    m=r
if m>e:
    m=e
m//=2
print (m)
0