← 返回题库
中级

完全竞争市场效率评价

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve(____):
    a, b = demand_func
    c, d = supply_func
    p_star = (____) / (____)
    q_star = a - b * p_star
    cs = ____ * (____) * q_star
    ps = ____ * (____) * q_star
    return {"____": round(____), "____": round(____), "____": round(____), "____": round(____), "____": round(____)}

示例

输入
solve([100, 2], [10, 3])
期望输出
{'均衡价格': 18.0, '均衡数量': 64.0, '消费者剩余': 4096.0, '生产者剩余': 6144.0, '总剩余': 10240.0}
Python 代码 🔒 登录后使用
🔒

登录后即可练习

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