← 返回题库
中级

道德风险

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve(____):
    expected_return_low = success_prob_low * reward
    expected_return_high = success_prob_high * reward - effort_cost
    optimal_effort = "____" if expected_return_high > expected_return_low else "____"
    return {"____": expected_return_low, "____": expected_return_high, "____": optimal_effort}

示例

输入
solve(10, 0.3, 0.7, 50)
期望输出
{'低努力期望收益': 15.0, '高努力期望收益': 25.0, '最优努力': '高努力'}
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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