7650 不定方程求解 python
生活随笔
收集整理的這篇文章主要介紹了
7650 不定方程求解 python
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
http://noi.openjudge.cn/math/7650/
""" 7650 不定方程求解 http://noi.openjudge.cn/math/7650/""" a,b,c = map(int,input( ).split( ))ans=0x=0 while x<=c//a:y=0while y<=c//b:if (a*x+b*y)==c:ans+=1y+=1x+=1print(ans)總結(jié)
以上是生活随笔為你收集整理的7650 不定方程求解 python的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 26产品经理需要具备的市场观察能力
- 下一篇: websocket python爬虫_p