Функція Акермана

Anonymous
c_cpp
03/26/2022 5:24 PM
324 B
27
Indexable
#include <bits/stdc++.h>

using namespace std;

int A(int m, int n)
{
    if(m==0) return ***;
    if(m>0 && n==0) return A(***,***);
    if(m>0 && n>0) return A(***, A(***,***));
}

int main()
{
    int m,n;
    cin>>m>>n;
    cout<<A(m,n);
}
Editor is loading...