Inverse Function
39G2400· grandmaster5s64 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
17int f(int n){if (n < 100) return 17;if (n > 99) return 27;}
Output
99
Sample 2of 3
Input
13int f(int n){if (n == 0) return 0;return f(n - 1) + 1;}
Output
13
Sample 3of 3
Input
144int f(int n){if (n == 0) return 0;if (n == 1) return n;return f(n - 1) + f(n - 2);}
Output
24588
58%
39G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)