01简单背包 package main import "fmt" func main() { var n, V int fmt.Scan(&n, &V) v := make([]int, n) w := make([]int, n) for i := 0; i < n; i++ { fmt.Scan(&v[i], &w[i]) } solve1(n, V, v, w) solve2(n, V, v, w) } func maxInt(x, y int) int { ...