题解 | #百钱买百鸡问题#

百钱买百鸡问题

https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b

for x in range(21):
    for y in range(34):
        for z in range(101):
            if (x+y+z == 100) and (5*x+3*y+z/3== 100):
                print(x,y,z)

全部评论

相关推荐

做个有文化的流氓:Offer收割机
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务