← 返回题库
高级

实现活动预算余额实时扣减

未完成

示例

输入
solve()
期望输出
Budget deduction simulation:
  CMP-0007 deduct=400.0 FAIL campaign_inactive
  CMP-0007 deduct=480.0 FAIL campaign_inactive
  CMP-0007 deduct=240.0 FAIL campaign_inactive
  CMP-0007 deduct=400.0 FAIL campaign_inactive
  CMP-0007 deduct=720.0 FAIL campaign_inactive
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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