码迷,mamicode.com
首页 >  
搜索关键字:a simple game    ( 11903个结果
radare, the reverse engineering framework
History The radare project [http://radare.org/] started in February of 2006 aiming to provide a free and simple command line interface for a hexadecim...
分类:其他好文   时间:2014-09-08 00:55:46    阅读次数:364
Eclipse Java注释模板设置详解
设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:英文模板:/** * * Simple to Introduction * @ProjectN...
分类:编程语言   时间:2014-09-07 14:45:05    阅读次数:226
zoj 3329 One Person Game(有环的概率dp)
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3754 开始看错题意了,以为没翻到a,b,c时要在原来的基础上加a+b+c,按我的意思推出来一个公式,没想到样例还过了,简直无法debug。 公式很好推,设dp[i]表示当前为i分时到达目标状态需要投掷的期望,可转移到两个状态dp[0]和dp[i+k]。设转移...
分类:其他好文   时间:2014-09-07 11:06:05    阅读次数:220
hdu 3869 Color the Simple Cycle (kmp+polya计数)
先把2*n个数字接成一个模式串P,复制两次的P为串T,然后在T上进行KMP找对P匹配的多个终点,然后就是用Polya定理了,需要求逆元。 1 #include 2 #include 3 #include 4 #include 5 #define mod 1000000007 6 using ...
分类:其他好文   时间:2014-09-07 00:58:34    阅读次数:192
LA 6459 Infinite Go (模拟,搜索)
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4470 Go is a proverbial board game originated in China. It has been proved to be the most diffic...
分类:其他好文   时间:2014-09-06 21:21:53    阅读次数:457
hdoj 2522 A simple problem 【模拟】
题意:算出1/n的结果,循环小数只输出第一个循环节 策略:模拟1除去n即可。 判断是否是循环节只需要找到%n之后的模是否出现就好了。 代码: #include #include #define M 100005 bool vis[M]; int main(){ int t, n; scanf("%d", &t); while(t --){ scanf("%d", &n); ...
分类:其他好文   时间:2014-09-06 16:08:43    阅读次数:143
Jack Straws(并差集和判断直线相交问题)
Jack Straws Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3155   Accepted: 1418 Description In the game of Jack Straws, a number of plastic or wooden "straws...
分类:其他好文   时间:2014-09-06 14:53:53    阅读次数:270
UVA - 1541 To Bet or Not To Bet (DP+概率)
Description Alexander Charles McMillan loves to gamble, and during his last trip to the casino he ran across a new game. It is played on a linear sequence of squares as shown below. A chip is in...
分类:其他好文   时间:2014-09-06 12:31:33    阅读次数:275
usaco-2.4-ttwo-pass
oh,pass!First,I think it's a game,hehe...../*ID: qq104801LANG: C++TASK: ttwo*/#include #include #include #include #include #include #include #include ...
分类:其他好文   时间:2014-09-06 12:20:03    阅读次数:230
博弈知识点
http://blog.csdn.net/acm_cxlove/article/details/78545261:HDOJ1846 Brave Game [找规律] 简单的巴什博弈 #include #include #include using namespace std; int main...
分类:其他好文   时间:2014-09-06 09:40:22    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!