結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2018-11-20 16:53:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 13,312 KB |
最終ジャッジ日時 | 2024-12-24 15:34:34 |
合計ジャッジ時間 | 1,871 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)