Untitled
unknown
c_cpp
7 months ago
257 B
0
Indexable
Never
#include <iostream> int Akkerman(int m,int n) { if (m == 0) return n + 1; if (n == 0) return Akkerman(m - 1, 1); return Akkerman(m - 1, Akkerman(m, n - 1)); } int main(){ int n, m; std::cin >> m >> n; std::cout << Akkerman(m, n); }
Leave a Comment