| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
好吧 我来贴原版的In Reply To:弱弱的问一下:这次有解题报告米? Posted by:zrO_Orz at 2008-10-05 17:07:21 A
按要求做 数据没人任何trick
B
搜索+减枝
C
模拟魔方转一面的方法
D
解决此题的一个关键是:
因为右端无限长,每个格子i和格子i+4,i+8,i+12....都是等价的
把题目的状态归纳为[i%4==0的个数][i%4==1的个数][i%4==2的个数][i%4==3的个数]
就可以很容易的用BFS求出是否可解
E
To solve this problem, we need to calculate the available range of the angle for each polygon. An assumption that the blocking effect of a polygon is equal to the total blocking effect of its edge could be easily proved. Thus what we need to do is to calculate the blocking angle for each segment and consider whether their union include (-pi, pi] by applying sort and scanning method. Do not forget to take the radius of the circle into consideration.
F
这道题目O(N2)是一个明显的下界。比如,对于黑白格就很容易证明,因为一个连通图至少有1/5是一种颜色的格子。
标准程序是一个基于分治思想的O(N2logN)算法。可以保证在50000步解决。现在我们也不知道有没有更好的方法。
G
首先需要证明对于n>4,[n/2]+1是下界,证明的方法通过逆序就可以,逆序的定义是A[i]>A[i+1]即称为逆序。这样{1,2……n}有0个逆序,{n,(n-1)……1}有n-1个逆序。第一次和最后一次操作都最多增加一个逆序,其它操作最多增加两个逆序,所以下届是ceil((n-1-2)/2)+2=[n/2]+1
然后对于n>4,寻找一种[n/2]+1的构造方法。思想不是很复杂。
H
主要思想是:所有fail的人一定所有题目都挂掉,所有advanced to final的人所有题目都pass,然后就可以做了,不过情况比较多。
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator