Re: [問題] 10157

看板ACMCLUB作者 (...)時間20年前 (2005/08/01 15:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/7 (看更多)
※ 引述《windows2k (KERORO軍曹)》之銘言: : ※ 引述《JonathanWang (尹兒)》之銘言: : : 這樣的 f[n][0] 裡面會包含到深度不足 d 的答案 : 少打了一些東西 : 要求的解 為 (深度 <=d 的 f[n][0]) - (深度<=d-1 的f[n][0]) 下面這段是別人給我的提示: At each position, you have two choices: opening bracket and closing bracket. So dp is table [depth][position] and stores how many ways there are to reach that. And since you only want to allow maximum depth of d, don't allow bigger depths when doing dp. -- win2k的方法感覺比較容易寫 王尹的方法實在很細膩.... :p -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.167.22.232
文章代碼(AID): #12xTMZst (ACMCLUB)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 6 之 7 篇):
問題
問題
文章代碼(AID): #12xTMZst (ACMCLUB)