← 返回题库
高级

基于历史数据生成减少浪费建议

未完成

示例

输入
solve()
期望输出
High waste dishes (>20%):
  小笼包: avg_waste=46.0% cost=202.61
    Suggestion: reduce prep by 15-20%
  菠菜汤: avg_waste=41.1% cost=159.87
    Suggestion: reduce prep by 15-20%
  馒头: avg_waste=41.6% cost=143.47
    Suggestion: reduce prep by 15-20%
  米粉: avg_waste=28.0% cost=102.5
    Suggestion: reduce prep by 15-20%
  葱油饼: avg_waste=90.0% cost=97.97
    Suggestion: reduce prep by 15-20%
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码