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 |
可以用DP计算好之后直接输出~DP计算好之后利用矩阵压缩,因为计算出来的矩阵式下三角矩阵,可以用一个一维数组保存数据,下标的转换算式:D[i,j] = D[i*(i-1)/2+j]. 这样能节省一半的空间~ AC之后320K 0ms~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator