摘要: 1143: [CTSC2008]祭祀river 题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1143 Description: 在遥远的东方,有一个神秘的民族,自称Y族。他们世代居住在水面上,奉龙王为神。每逢重大庆典, Y族都会在水面上 阅读全文
posted @ 2019-02-18 23:11 heyuhhh 阅读(134) 评论(0) 推荐(0) 编辑
摘要: A Simple Problem with Integers 题目链接:http://poj.org/problem?id=3468 Description: You have N integers, A1, A2, ... , AN. You need to deal with two kinds 阅读全文
posted @ 2019-02-18 22:59 heyuhhh 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 131926 Accepted Submission(s): 55150 题目链接:ht 阅读全文
posted @ 2019-02-18 22:53 heyuhhh 阅读(154) 评论(0) 推荐(0) 编辑
摘要: D. Nature Reserve 题目链接:https://codeforces.com/contest/1059/problem/D 题意: 在二维坐标平面上给出n个数的点,现在要求一个圆,能够容纳所有的点,并且与x轴相切的最小半径为多少。 题解: 容易知道圆的纵坐标的绝对值等于其半径,并且半径 阅读全文
posted @ 2019-02-18 22:47 heyuhhh 阅读(200) 评论(0) 推荐(0) 编辑
摘要: C. Sequence Transformation 题目链接:https://codeforces.com/contest/1059/problem/C 题意: 现在有1~n共n个数,然后执行下面操作: 1.求出余下数的gcd,然后将gcd加入答案队列; 2.从中任意删除一个数,如果余下数的个数大 阅读全文
posted @ 2019-02-18 22:39 heyuhhh 阅读(145) 评论(0) 推荐(0) 编辑
摘要: D. Sum in the tree 题目链接:https://codeforces.com/contest/1099/problem/D 题意: 给出一棵树,以及每个点的si,这里的si代表从i号结点到根节点的权值和。但是有些si=-1,这就相当于丢失了当前结点的数据。 假设原本每个点的权值为ai 阅读全文
posted @ 2019-02-18 22:21 heyuhhh 阅读(168) 评论(0) 推荐(0) 编辑