这个算法,emm....贴上公式贴上代码溜了....
代码:
def McCarthy91(value): if value>100: return value-10 elif value<=100: return McCarthy91(McCarthy91(value+11)) print(McCarthy91(10))
运行结果:
这个算法,emm....贴上公式贴上代码溜了....
代码:
def McCarthy91(value): if value>100: return value-10 elif value<=100: return McCarthy91(McCarthy91(value+11)) print(McCarthy91(10))
运行结果: