Invisible Hand
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
在苹果市场中,有 个卖家和 个买家。第 个卖家愿意出售的最低价格为 元,第 个买家愿意购买的最高价格为 元。
请求出一个最低价格 ,使愿意以 元出售的卖家数量大于等于愿意以 元购买的买家。
输入格式
第一行有两个整数 。
第二行有 个整数,第 个为 。
第三行有 个整数,第 个为 。
输出格式
一行一个整数,为最低价格 。