D. Colored Rectangles(動態規劃問題) Educational Codeforces Round 93 (Rated for Div. 2)

原題連接: http://codeforces.com/contest/1398/problem/Dhtml 樣例:ios input 1 1 1 3 5 4 output 20 input 2 1 3 9 5 1 2 8 5 output 99 input 10 1 1 11 7 20 15 19 14 2 4 13 14 8 11 output 372 題意: 你有三對彩棒的多重集合,即G,B
相關文章
相關標籤/搜索