Fence Repair(优先队列)
A - Fence Repair
Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length Li (1 ≤ Li ≤ 50,000) units. He then purchases a si
原创
2021-03-08 16:47:58 ·
398 阅读 ·
0 评论