package main import ( "fmt" ) func main() { //接收参数 var count int fmt.Scan(&count) ori := count nums := make([]int, ori, ori) index := 0 for count > 0 { height := 0 fmt.Scan(&height) nums[index] = height count-- index++ } if len(nums) < 3 { fmt.Print(0) return } dpUp := make([...