贪心
大橘为重eleven
每天都因为自己太菜了而自闭
展开
-
Beijing Guards
题目描述Beijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally the Outer City Wall. Most of these walls were demolished...原创 2019-07-25 16:53:08 · 214 阅读 · 0 评论 -
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...原创 2019-08-07 20:03:55 · 133 阅读 · 0 评论 -
Build Tree
题目描述:You need to construct a full n-ary tree(n叉树) with m layers.All the edges in this tree have a weight.But this weight cannot be chosen arbitrarily you can only choose from set S,the size of S is k...原创 2019-08-07 20:29:39 · 1013 阅读 · 2 评论