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
设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:英文模板:/** * * Simple to Introduction * @ProjectN...
分类:
编程语言 时间:
2014-09-07 14:45:05
阅读次数:
226
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
先把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
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
题意:算出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
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
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
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