def sumN(n):
ans=n
temp=ans and sumN(n-1)
ans=ans+temp
return ans
def sumN(n):
ans=n
temp=ans and sumN(n-1)
ans=ans+temp
return ans
本文标题:不使用乘除法,if,else,for,while,switch,
本文链接:https://www.haomeiwen.com/subject/xpfxmqtx.html
网友评论