Angel Beats!(这是一部日漫,7.16的出题人好神奇,名字都来自于影音作品)题目大意给你一棵1为根的树,然后会有q个询问,向你查询点x子树和点y子树的重心,重心可能会有很多个,你只需要输出距离和即可。
两棵子树的重心的定义如下:在树上找到一个点,使得该点到两棵子树中所有点距离之和最小,即这两棵子树的重心。输入格式第一行一个整数 ,代表点的数量。
接下来 n-1行,第i 行的表示节点i...
分类:
其他好文 时间:
2016-07-18 20:16:14
阅读次数:
595
solid angel --立体角 单位 sr 球面度 dω就是对solid angel的微分 4π代表一个球 radiant energy: J radiant flux: W irradiance:W/m2 radiant intersity: W/sr radiance: W/(m2sr) Q ...
分类:
其他好文 时间:
2016-07-12 21:18:29
阅读次数:
146
Problem Description
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Angel’s...
分类:
其他好文 时间:
2016-07-10 18:30:32
阅读次数:
174
Xcode7 运行报错:While reading ***.png pngcrush caught libpng error:***,图片不是完全的png格式 解决:将图片重新导出为png即可 ...
分类:
移动开发 时间:
2016-07-08 18:02:08
阅读次数:
374
2016年6月22日 星期三 --出埃及记 Exodus 14:19Then the angel of God, who had been traveling in front of Israel's army, withdrew and went behind them. The pillar o ...
分类:
其他好文 时间:
2016-06-24 09:19:04
阅读次数:
145
http://www.cnblogs.com/lucifer1982/archive/2008/06/18/1224319.html 作者:Angel Lucifer 引子 这篇仍然不讲并行/并发。 Hash table,国内相当一部分书籍将其直译为哈希表,但博主本人喜欢称其为散列表。 散列表支持任 ...
分类:
其他好文 时间:
2016-06-22 10:58:24
阅读次数:
224
游戏目标:打ye刷钱,然后杀对方50人头
红点的地方都有boss,所有boss掉装备都是随机的,只有那么几样。
其中最中间的boss可能会掉一个特殊配件possessedSword,能跟BKB合成。
下面中间的boss打败以后可以选择几个特殊英雄(有些英雄开局时不能选)
很多装备都只是加强,像死灵书一样可以升级。
神装都要boss掉落:(下图的说明 是只能从boss得到...
分类:
其他好文 时间:
2016-06-21 08:04:23
阅读次数:
391
Rescue Time Limit: 1000MS Memory Limit: 32768KB 64bit IO Format: %I64d & %I64u Description Angel was caught by the MOLIGPY! He was put in prison by Mo ...
分类:
其他好文 时间:
2016-06-15 00:01:46
阅读次数:
320
很简单的一个程序: 但是根本就没有起作用time.sleep The actual suspension time may be less than that requested because any caught signal will terminate the sleep() followi ...
分类:
编程语言 时间:
2016-05-24 20:54:47
阅读次数:
1217
看看xcode的具体的描述: CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -c ...
分类:
移动开发 时间:
2016-05-22 20:12:26
阅读次数:
216