Tupel oder Null zurückgeben
// return a tuple or null
fn solve(sum: u32, gcd: u32) -> Option<(u32, u32)> {
if sum % gcd != 0 {
None
} else {
Some((gcd, sum - gcd))
}
}
// FYI: the problem solved is:
// Given the sum and gcd of two numbers, return the two numbers in ascending order.
Mackerel