高级
实现事件溯源(Event Sourcing)
未完成示例
输入
solve()
期望输出
ORD001: status=shipped, amount=598.0 ORD002: status=cancelled, amount=0 ORD003: status=completed, amount=264.0 ORD016: status=paid, amount=97.77 ORD017: status=pending, amount=0 ORD018: status=paid, amount=764.41 ORD019: status=paid, amount=496.79 ORD020: status=pending, amount=0 ORD021: status=shipped, amount=0 ORD022: status=pending, amount=0 ORD023: status=paid, amount=585.77 ORD024: status=shipped, amount=0 ORD025: status=shipped, amount=0 ORD026: status=paid, amount=599.75 ORD027: status=shipped, amount=0 ORD028: status=pending, amount=0 ORD029: status=shipped, amount=0 ORD030: status=pending, amount=0 ORD031: status=pending, amount=0 ORD032: status=paid, amount=461.85 ORD033: status=paid, amount=463.71 ORD034: status=shipped, amount=0 ORD035: status=paid, amount=463.8 ORD036: status=paid, amount=859.13 ORD037: status=pending, amount=0 ORD038: status=paid, amount=369.58 ORD039: status=paid, amount=513.17 ORD040: status=paid, amount=315.68
👑
升级 VIP
解锁全部题目,畅通无阻地学习
- ✓ 解锁全部训练包所有题目
- ✓ 查看完整参考代码和提示
- ✓ 浏览器内直接运行 Python 代码
- ✓ 自动批改 + 进度追踪
30天
¥18
1年
¥99
2年
¥158
3年
¥199