[問題] ACM-507

看板C_and_CPP (C/C++)作者 (小達)時間15年前 (2011/03/21 18:44), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Dev c++ 問題(Question): 上傳一直得到wrong answer= = 我用了蠻多組測資output都沒有錯 不曉得是錯在哪個地方 題目 http://www.codigo-c.com.ar/problems-ACM/ACM-Problem-507-jill-rides-again.php 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/zh9qgKjp 補充說明(Supplement): 我輸入資料是輸入 3 3 -1 6 10 4 -5.... 打成一行 最後再按enter -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.120.239.144

03/21 19:21, , 1F
搜尋 演算法筆記,找DP的Maximum Subarray章節。
03/21 19:21, 1F

03/21 20:05, , 2F
如果你整理出自己的想法再跟大家分享, 會更好喔! :)
03/21 20:05, 2F
文章代碼(AID): #1DXomU2_ (C_and_CPP)
文章代碼(AID): #1DXomU2_ (C_and_CPP)