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

百钱买百鸡问题

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

for x in range(0,100):
    for y in range(1,100-x):
        z=100-x-y
        if (5*x+3*y+(1/3)*z==100):
            print(x,y,z)

全部评论

相关推荐

团子 行业运营 n*15.5
点赞 评论 收藏
转发
科大讯飞 飞凡计划-研发方向 年薪42w左右
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务