You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
249 B
Rust

fn a(n: u64) -> u64 {
if n>0 {
b(n);
b(n);
}
n * n
}
fn b(n: u64) -> u64 {
c(n);
c(n);
n + 2 / 3
}
fn c(n: u64) -> u64 {
a(n-1);
a(n-1);
vec![1, 2, 3].into_iter().map(|x| x+2).sum()
}
fn main() {
a(6);
}