📅  最后修改于: 2022-03-11 14:44:53.794000             🧑  作者: Mango
package kata
func Solve(s int, g int) []int {
if s % g != 0 {
return []int{-1, -1}
}
return []int{g, s - g}
}
// FYI: the problem to solve is:
// Given the sum and gcd of two numbers, return the two numbers in ascending order.