上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: "http://acm.hdu.edu.cn/showproblem.php?pid=2089" include include include using namespace std; typedef long long ll; int a[20]; int dp[20][2]; int dfs( 阅读全文
posted @ 2017-12-24 07:55 Grary 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 需要在一个简答的动态规划上加一点东西 给一些状态数非常多但是重复状态非常多的动规提供了一种可能的解决方法。 include include define N 1000005 using namespace std; int a[N],d[N],stone[N]; int f[N]; int main 阅读全文
posted @ 2017-12-23 22:00 Grary 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入二个正整数x0,y0(2 include using namespace std; int m,n,ans; int gcd(int x,int y){ if(!y){return x;} return gcd(y,x%y); } int main(){ cin n m; for(in 阅读全文
posted @ 2017-12-23 21:08 Grary 阅读(193) 评论(0) 推荐(0) 编辑
摘要: ``` include include include define N 1000005 define inf 0x3f3f3f3f using namespace std; struct node{ int to,nxt,cap; }; int que[N]; int h,qt; struct D 阅读全文
posted @ 2017-12-23 13:44 Grary 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ``` include include include include include include include include define N 10005 define INF 0x3f3f3f3f define Del(a,b) memset(a,b,sizeof(a)) using n 阅读全文
posted @ 2017-12-23 11:35 Grary 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ``` include include include include define N 1000005 define inf 0x3f3f3f3f using namespace std; struct Edge{ int to,nxt,cap; }; int que[N]; int h,qt; 阅读全文
posted @ 2017-12-23 11:21 Grary 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ``` include include include include include include define N 1000005 define inf 0x3f3f3f3f using namespace std; void read(int &s){ char ch=getchar(); 阅读全文
posted @ 2017-12-23 11:20 Grary 阅读(106) 评论(0) 推荐(0) 编辑
摘要: \href{http://www.lydsy.com/JudgeOnline/problem.php?id=1101}{BZOJ 1101 [POI2007]Zap}\\ 这种形式的式子在之前的文章中出现过不少。\\ 将题目中的式子反演化简到最后会得到一个式子: \begin{equation} a 阅读全文
posted @ 2017-12-16 14:51 Grary 阅读(142) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-12-10 18:29 Grary 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ``` \subsubsection{例题4:} \href{http://www.lydsy.com/JudgeOnline/problem.php?id=3529}{BZOJ 3529: [Sdoi2014]数表}\\ \href{http://blog.csdn.net/PoPoQQQ/art 阅读全文
posted @ 2017-12-10 18:28 Grary 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
博客园 首页 私信博主 编辑 关注 管理 新世界