#include #include #include int m_bits, n_bits; int *cache; int ackermann(int m, int n) { int idx, res; if (!m) return n + 1; if (n >= 1<