摘要: 题目链接/*按从左到右,从下到上的顺序给出星星的坐标,计算出level为[0,n)的星星的个数。星星的level为该星星左下边(包括自己正下方的星星,但是不包括自己)星星的个数。BIT模板题。 £:把星星的下标转化成从1开始。 £:想到用BIT做。*/#include#... 阅读全文
posted @ 2016-08-28 15:30 _Mickey 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目链接/*判断一棵树:* 1、There is exactly one node, called the root, to which no directed edges point. * 2、Every node except the root has exactly one ... 阅读全文
posted @ 2016-08-28 10:02 _Mickey 阅读(115) 评论(0) 推荐(0) 编辑