4992: [Usaco2017 Feb]Why Did the Cow Cross the Road

Descriptionweb 有一幅n*n的方格圖,n <=100,每一個點上有一個值。 \從(1,1)出發,走到(n,n),只能走上下左右。 每走一步花費t,每走三步須要花費走完三步後到達格子的值。 求最小花費的值。 Inputsvg Outputui Sample Inputspa 4 2code 30 92 36 10xml 38 85 60 16ip 41 13 5 68string 20
相關文章
相關標籤/搜索