会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Commence
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
下一页
2014年10月2日
UVALIVE 2431 Binary Stirling Numbers
摘要: 转自别人的博客。这里记录一下这题是定义如下的一个数:S(0, 0) = 1; S(n, 0) = 0 for n > 0;S(0, m) = 0 for m > 0;S(n, m) = m S(n - 1, m) + S(n - 1, m - 1), for n, m > 0.也就是题中所说的把一个...
阅读全文
posted @ 2014-10-02 20:10 Commence
阅读(162)
评论(0)
推荐(0)
2014年9月27日
UVA 10570 meeting with aliens
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu...
阅读全文
posted @ 2014-09-27 17:11 Commence
阅读(197)
评论(0)
推荐(0)
UVA 306 Cipher
摘要: 题意 :lucky cat里有翻译。英文也比较好懂。很容易发现有周期然后就拍就好了注意每组数据后边都有空行 包括最后一组。一开始以为最后一组没有空行。唉。。#include #include #include #include #include #include #include #include ...
阅读全文
posted @ 2014-09-27 14:43 Commence
阅读(193)
评论(0)
推荐(0)
2014年9月26日
UVA 10994 Simple Addition
摘要: 感觉这个一定要记下来涨教训啊。一开始找规律找错了。判断超麻烦还各种WA。浪费N个小时啊。。人家几行就A了。太弱,#include #include #include #include #include #include #include #include #include #include #inc...
阅读全文
posted @ 2014-09-26 19:48 Commence
阅读(147)
评论(0)
推荐(0)
2014年9月25日
UVA 696 How Many Knights
摘要: 真心没发现规律。感觉挺像CF一些锻炼思维的题看了这里http://hi.baidu.com/knowledgetime/item/87d13b1f12290a53f1090ea7#include #include #include #include #include #include #includ...
阅读全文
posted @ 2014-09-25 23:46 Commence
阅读(193)
评论(0)
推荐(0)
UVA 10205 Stack 'em Up
摘要: 直接模拟就好。#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #incl...
阅读全文
posted @ 2014-09-25 19:39 Commence
阅读(371)
评论(0)
推荐(0)
UVA 11125 Arrange Some Marbles
摘要: dp[i][j][m][n][s]表示最初选择j个i号颜色大理石。当前选择n个m号颜色大理石。剩余大理石状态(8进制数状压表示)最开始没看出状压。。sad#include #include #include #include #include #include #include #include #...
阅读全文
posted @ 2014-09-25 13:44 Commence
阅读(293)
评论(0)
推荐(0)
2014年9月24日
UVA 10912 Simple Minded Hashing
摘要: 题意就略了。刚一看被数据吓住了。看到字符要求严格递增。那么如果字串长大于26那必然方案数目为0;同时1+2+3....+24+25+26=351如果大于这个数也是不可能的令dp[i][j][k]表示第i位为第j个字符和为K时的方案数目那么 dp[i][j][k]=sum(dp[i-1][m][k-t...
阅读全文
posted @ 2014-09-24 18:30 Commence
阅读(246)
评论(0)
推荐(0)
2014年9月23日
UVA 10081 Tight numbers(POJ 2537)
摘要: 直接看代码就OK。思路比较简单。就是注意概率要在转移过程中算出来。不能算成成立的方案书除以总方案数(POJ的这道题可以这么干。数据很水么。另外POJ要用%.5f,%.5lf 会WA。)#include #include #include #include #include #include #i...
阅读全文
posted @ 2014-09-23 18:57 Commence
阅读(314)
评论(0)
推荐(0)
2014年9月20日
UVA 10910 Marks Distribution
摘要: 题意 把数字T分成N个数的和,保证这N个数中最小的数大于P。求方案数目另f[i][j]表示把i分成j个数的和的方案数f[i][j]=f[i][j-1]+f[i-1][j-1]+f[i-2][j-1]+...f[0][j-1];f[i-1][j]=f[i-1][j-1]+f[i-2][j-1]+......
阅读全文
posted @ 2014-09-20 16:41 Commence
阅读(164)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
下一页
公告