package main import ( "fmt" ) func main() { var money, count int fmt.Scan(&money, &count) goods := make([][]int, count) for i := 0; i < count; i++ { goods[i] = make([]int, 3) fmt.Scan(&goods[i][0], &goods[i][1], &goods[i][2]) } costs := make([][]int, 0) prices := mak...