結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 14:13:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 196 ms / 2,000 ms |
| コード長 | 190 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,120 KB |
| 最終ジャッジ日時 | 2024-09-26 03:35:11 |
| 合計ジャッジ時間 | 2,866 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
S = list(input())
t_cnt=0
r_cnt=0
e_cnt=0
for s in S:
if s=="t":
t_cnt+=1
elif s=="r":
r_cnt+=1
elif s=="e":
e_cnt+=1
print(min(t_cnt,r_cnt,(e_cnt)//2))
もぐら 3.0