結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 14:13:14 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 195 ms / 2,000 ms |
| コード長 | 190 bytes |
| 記録 | |
| コンパイル時間 | 540 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 24,056 KB |
| 最終ジャッジ日時 | 2026-04-13 06:13:46 |
| 合計ジャッジ時間 | 4,648 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_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