上一页 1 ··· 9 10 11 12 13 14 下一页

2014年9月2日

摘要: http://baike.baidu.com/view/1101962.htm?fr=aladdin Nim游戏是博弈论中最经典的模型(之一),它又有着十分简单的规则和无比优美的结论 Nim游戏是组合游戏(Combinatorial Games)的一种,准确来说,属于“Impartial C... 阅读全文

posted @ 2014-09-02 14:08 LLGemini 阅读(352) 评论(0) 推荐(0) 编辑

2014年9月1日

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 using namespace std;... 阅读全文

posted @ 2014-09-01 20:11 LLGemini 阅读(197) 评论(0) 推荐(0) 编辑

摘要: 转自http://www.cnblogs.com/heyonggang/archive/2013/08/07/3243477.html类属性算法unique的作用是从输入序列中“删除”所有相邻的重复元素。该算法删除相邻的重复元素,然后重新排列输入范围内的元素,并且返回一个迭代器(容器的长度没变,只是... 阅读全文

posted @ 2014-09-01 18:34 LLGemini 阅读(409) 评论(0) 推荐(0) 编辑

2014年8月31日

摘要: 1 bool lexicographicalSmaller(vector a, vector b) 2 { 3 int n = a.size(); 4 int m = b.size(); 5 for(int i = 0; i 2 bool lexicographicalS... 阅读全文

posted @ 2014-08-31 11:44 LLGemini 阅读(423) 评论(0) 推荐(0) 编辑

2014年8月24日

摘要: 介意转吗博主~~http://blog.csdn.net/thestoryofsnow/article/details/6822576,我知道不介意啦~ 问题:如何检测一个链表是否有环,如果有,那么如何确定环的起点. 龟兔解法的基本思想可以用我们跑步的例子来解释,如果两个人同时出发,如果赛道... 阅读全文

posted @ 2014-08-24 23:46 LLGemini 阅读(2277) 评论(0) 推荐(0) 编辑

2014年8月23日

摘要: 1 inline int readint() 2 { 3 char c = getchar(); 4 while(!isdigit(c)) c = getchar(); 5 6 int x = 0; 7 while(isdigit(c)) 8 { 9 ... 阅读全文

posted @ 2014-08-23 23:53 LLGemini 阅读(277) 评论(0) 推荐(0) 编辑

2014年8月21日

摘要: 1 typedef long long ll; 2 #define MOD 1000000007 3 ll pow_mod(ll a, ll n) 4 { 5 if(n == 0) return 1; 6 ll x = pow_mod(a, n/2); 7 ll ans ... 阅读全文

posted @ 2014-08-21 15:44 LLGemini 阅读(137) 评论(0) 推荐(0) 编辑

摘要: POINT : 质因子分解;(仅给题解)http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1721题意:给你两个整数m和n,求最大的k使... 阅读全文

posted @ 2014-08-21 13:30 LLGemini 阅读(164) 评论(0) 推荐(0) 编辑

2014年8月20日

摘要: 首先上模板(不断更新中...)(根据刘汝佳AOAPCII修改) 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 1... 阅读全文

posted @ 2014-08-20 17:19 LLGemini 阅读(413) 评论(0) 推荐(0) 编辑

摘要: 1.两个素数A, B, A<=B, 若其和也为素数,则其中一个必为2; 阅读全文

posted @ 2014-08-20 14:25 LLGemini 阅读(139) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 下一页