上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: //CodeForces 411C 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 #include "vector" 6 using namespace std; 7 i... 阅读全文
posted @ 2015-02-24 18:09 AC_Phoenix 阅读(190) 评论(0) 推荐(0)
摘要: //CodeForces 411B 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 #include "vector" 6 using namespace std; 7 i... 阅读全文
posted @ 2015-02-24 18:08 AC_Phoenix 阅读(207) 评论(0) 推荐(0)
摘要: //CodeForces 411A 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 #include "vector" 6 using namespace std; 7 c... 阅读全文
posted @ 2015-02-24 18:06 AC_Phoenix 阅读(135) 评论(0) 推荐(0)
摘要: //GCIS 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 int dp[510], Max; 7 int s1[510],... 阅读全文
posted @ 2015-02-22 17:09 AC_Phoenix 阅读(169) 评论(0) 推荐(0)
摘要: //先贴一发错误的代码,dp[层数][方向]//因为是对不完整的方案计数了... 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; ... 阅读全文
posted @ 2015-02-20 20:04 AC_Phoenix 阅读(543) 评论(0) 推荐(0)
摘要: //搜啊搜...//因为我们每次搜索的起点都是一样的,但是数组的第一个元素不同,所以可以手工算出下一个点,从起点的下一点开始搜 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" ... 阅读全文
posted @ 2015-02-18 17:53 AC_Phoenix 阅读(524) 评论(2) 推荐(0)
摘要: //继续水一道树形dp 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 #include "cmath" 6 using namespace std; 7 __int64 ... 阅读全文
posted @ 2015-02-18 15:45 AC_Phoenix 阅读(186) 评论(0) 推荐(0)
摘要: //再水一发树形dp 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using namespace std; 6 int dp[6010][2]; 7 bool vis[... 阅读全文
posted @ 2015-02-18 13:42 AC_Phoenix 阅读(153) 评论(0) 推荐(0)
摘要: //好久没水题了,水一发记忆化好了= ̄ω ̄= 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 #include "cmath" 6 using namespace std;... 阅读全文
posted @ 2015-02-17 22:50 AC_Phoenix 阅读(210) 评论(0) 推荐(0)
摘要: //思路:通过博弈的思想设计出状态,dp[w][b] 表示当公主面对 w 只白鼠和 b 只黑鼠时获胜的概率 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "algorithm" 5 using na... 阅读全文
posted @ 2015-02-17 21:54 AC_Phoenix 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页