結果

問題 No.279 木の数え上げ
ユーザー rocoderrocoder
提出日時 2017-06-04 17:23:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 11,848 KB
実行使用メモリ 19,704 KB
最終ジャッジ日時 2023-10-22 04:21:46
合計ジャッジ時間 3,791 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,052 KB
testcase_01 AC 29 ms
10,052 KB
testcase_02 AC 30 ms
10,052 KB
testcase_03 WA -
testcase_04 AC 29 ms
10,052 KB
testcase_05 AC 29 ms
10,052 KB
testcase_06 AC 29 ms
10,052 KB
testcase_07 AC 29 ms
10,052 KB
testcase_08 AC 29 ms
10,052 KB
testcase_09 AC 29 ms
10,052 KB
testcase_10 AC 278 ms
18,128 KB
testcase_11 AC 85 ms
11,720 KB
testcase_12 AC 198 ms
15,528 KB
testcase_13 AC 62 ms
11,236 KB
testcase_14 AC 304 ms
19,704 KB
testcase_15 AC 252 ms
17,152 KB
testcase_16 AC 225 ms
16,564 KB
testcase_17 AC 273 ms
19,048 KB
testcase_18 AC 155 ms
14,244 KB
testcase_19 AC 265 ms
17,860 KB
testcase_20 AC 285 ms
18,568 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
e//=2
print (e)
0