結果

問題 No.279 木の数え上げ
ユーザー notsix4notsix4
提出日時 2021-12-02 13:50:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 10,688 KB
最終ジャッジ日時 2023-09-18 10:14:20
合計ジャッジ時間 2,752 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,876 KB
testcase_01 AC 16 ms
7,772 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 15 ms
7,928 KB
testcase_04 AC 17 ms
7,792 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 16 ms
7,764 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 AC 16 ms
7,796 KB
testcase_10 AC 166 ms
9,616 KB
testcase_11 AC 49 ms
8,404 KB
testcase_12 AC 116 ms
9,320 KB
testcase_13 AC 34 ms
8,024 KB
testcase_14 AC 178 ms
10,688 KB
testcase_15 AC 155 ms
9,712 KB
testcase_16 AC 136 ms
9,432 KB
testcase_17 AC 170 ms
9,884 KB
testcase_18 AC 92 ms
8,904 KB
testcase_19 AC 162 ms
9,724 KB
testcase_20 AC 173 ms
9,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
d={}
for i in s:
    if i=="t":
        if "t" not in d:
            d["t"]=1 
        else:
            d["t"]+=1 
    elif i=="r":
        if "r" not in d:
            d["r"]=1 
        else:
            d["r"]+=1
    elif i=="e":
        if "e" not in d:
            d["e"]=1 
        else:
            d["e"]+=1
a=0
if d["t"]>=1 and d["r"]>=1 and d["e"]>=2:
    a=min([d["t"],d["r"],d["e"]//2])
print(a)
0