#P3895. 奶牛飞车

奶牛飞车

Description



Input Format

N<= 10^5
3 1 1 5
5
7
5
2

Source

过程模拟 贪心