码迷,mamicode.com
首页 >  
搜索关键字:hdu1143    ( 5个结果
Tri Tiling(hdu1143)
Tri Tiling Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2731    Accepted Submission(s): 1547 Problem Description In how many ways ...
分类:其他好文   时间:2015-07-16 00:56:03    阅读次数:146
Tri Tiling(hdu1143)
Tri TilingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2731Accepted Submission(s): 1547Problem ...
分类:其他好文   时间:2015-07-15 14:41:36    阅读次数:99
hdu1143 状态压缩dp 记忆化搜索写法
http://poj.org/problem?id=1143 Description Christine and Matt are playing an exciting game they just invented: the Number Game. The rules of this game are as follows.  The players take turns ch...
分类:其他好文   时间:2015-03-14 11:05:08    阅读次数:161
HDU1143 Tri Tiling 递推
#include int main() { int f[31]; int i,L; int n; f[0]=1; for(i=1;i<=30;i+=2) f[i]=0; for(i=2;i<=30;i+=2) { f[i]=0; for(L=2;L<=i;L+=2) { if(L==2) f[i]+=3*f[i-L]; else f[i]+=2*f[i-...
分类:其他好文   时间:2014-11-13 20:47:24    阅读次数:146
hdu1143 Tri Tiling(递推)
题目链接: huangjing 首先考虑长为奇数的情况,你试着画几个就会发现那个根本不可能成立,所以只有长度为偶数的情况才可以。。 然后就会发现除了2这种特殊情况外,其余的2 4 6 8都只有两种情况 具体参看 http://blog.csdn.net/chaoojie/article/details/8860935 把 4, 6, 8.... 看成一整块,就有下图两种情况(正着...
分类:其他好文   时间:2014-11-11 12:47:14    阅读次数:183
5条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!