bestcoder
FBI-PC
这个作者很懒,什么都没留下…
展开
-
BestCoder Round #11 (Div. 2) 前三题题解
题目链接: huangjing hdu5054 Alice and Bob 思路: 就是(x,y)在两个参考系中的表示演完全一样。那么只可能在这个矩形的中点。。 题目: Alice and Bob Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Tot原创 2014-09-29 21:30:45 · 835 阅读 · 0 评论 -
hdu5105Math Problem(分类讨论)
题目链接: huangjing 题目: 思路: 给出的是一个方程,首先讨论最高项系数。 1:a==0&& b==0 那么函数就是线性的,直接比较端点即可。 2 a==0&&b!=0 那么函数就是二次函数,直接算出特征值,然后比较端点值即可。。 3 a!=0 又有几种情况,那么当特征根 b*b-4*a*c 当大于0的时候,直接求出两个根,然后和端点值比较即可 ps原创 2014-11-17 23:07:03 · 1165 阅读 · 0 评论 -
BestCoder Round #13(前两题)
这一次又只出了一题,第二题没有分析好,竟然直接copy代码,不过长见识了。。 第一题给了一些限制条件,自己没有分析好,就去乱搞,结果各种不对,后来有读题才发现。。暴力乱搞。。 题目: Beautiful Palindrome Number Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768 K原创 2014-10-15 21:56:57 · 952 阅读 · 0 评论 -
Lowest Common Ancestor of a Binary Tree(最小公共祖先)
Lowest Common Ancestor of a Binary Tree Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common...原创 2019-07-23 15:33:34 · 268 阅读 · 0 评论