py
2025-05-25 09:22:07
发布于:浙江
5阅读
0回复
0点赞
"""思路
签字笔一共要2x元
记事本一共要5y元
直尺一共要3z元
供需(2x+5y+3z)元 ---> total
......
"""
x=int(input())
y=int(input())
z=int(input())
q=int(input())
total=2*x+5*y+3*z
print(f"Yes\n{q-total}" if q>=total else f"No\n{total-q}")
这里空空如也
有帮助,赞一个