結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 14:13:14 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 190 ms / 2,000 ms |
| + 367µs | |
| コード長 | 190 bytes |
| 記録 | |
| コンパイル時間 | 886 ms |
| コンパイル使用メモリ | 21,332 KB |
| 実行使用メモリ | 24,476 KB |
| 最終ジャッジ日時 | 2026-09-04 13:12:12 |
| 合計ジャッジ時間 | 5,151 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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