小学奥数_7829神奇序列求和 python
生活随笔
收集整理的這篇文章主要介紹了
小学奥数_7829神奇序列求和 python
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://noi.openjudge.cn/math/7829/
"""小學奧數_7829神奇序列求和 http://noi.openjudge.cn/math/7829/ https://blog.csdn.net/tigerisland45/article/details/69063239 https://blog.csdn.net/u013630329/article/details/4963620""" x,y,n=map(int,input().split())mid=x+y ans=x+yans*=2""" i=2 while i<=n:ans*=3ans-=midi+=1 """ for i in range(2,n+1):ans*=3ans-=midprint(ans)總結
以上是生活随笔為你收集整理的小学奥数_7829神奇序列求和 python的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【C#桌面应用】第五节:制作简单的登录注
- 下一篇: 【原型设计】第三节:Axure RP9