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
Fence Repair Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 39511 Accepted: 12864 Description Farmer John wants to repair a small length of the fence around the pasture(草地). He mea