結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
surprise_tanaka
|
| 提出日時 | 2018-11-20 16:53:26 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 16,860 KB |
| 最終ジャッジ日時 | 2026-05-30 11:09:01 |
| 合計ジャッジ時間 | 3,778 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 19 |
ソースコード
S = input()
tree = "tree"
min = len(S)
for i in range(len(tree)):
if tree[i] in S and min >= S.count(tree[i]):
min = S.count(tree[i])
if min * 2 <= S.count("e"):
print(min)
else:
print(min-1)
surprise_tanaka