← 返回题库
高级

实现新卡引入速率控制算法

未完成

示例

输入
solve()
期望输出
New cards allocation:
  Alice: max_new=10 due_reviews=31 -> introduce=4
  Bob: max_new=10 due_reviews=34 -> introduce=3
  Carol: max_new=15 due_reviews=32 -> introduce=15
  David: max_new=15 due_reviews=29 -> introduce=15
  Eve: max_new=25 due_reviews=41 -> introduce=25
  Frank: max_new=10 due_reviews=33 -> introduce=2
  Grace: max_new=20 due_reviews=34 -> introduce=3
  Henry: max_new=20 due_reviews=27 -> introduce=20
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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