結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-02 13:50:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 188 ms / 2,000 ms |
| コード長 | 417 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2024-07-05 01:52:47 |
| 合計ジャッジ時間 | 3,264 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
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)