会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
禅境花园
新博客 http://xiang578.github.io/
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
37
下一页
2015年9月12日
hdu 1267 下沙的沙子有几粒? 递推
摘要: #includeusing namespace std;typedef long long ll;int n,m;ll dp[25][25];int main(){ int i,j; memset(dp,0,sizeof(dp)); dp[1][1]=1; f...
阅读全文
posted @ 2015-09-12 15:47 xryz
阅读(84)
评论(0)
推荐(0)
2015年9月11日
poj 2553 The Bottom of a Graph 强连通Kosaraju
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include //#includeusing namespace...
阅读全文
posted @ 2015-09-11 15:14 xryz
阅读(151)
评论(0)
推荐(0)
poj Going from u to v or from v to u? 强联通缩点+拓扑排序(或搜索)
摘要: 方法一#include #include #include #include #include #include #include #include #include #include #include #include #include //#includeusing namesp...
阅读全文
posted @ 2015-09-11 09:55 xryz
阅读(143)
评论(0)
推荐(0)
2015年9月10日
poj 2186 Popular Cows 有向图强连通分量 tarjan
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include //#includeusing namespace...
阅读全文
posted @ 2015-09-10 22:24 xryz
阅读(142)
评论(0)
推荐(0)
hdu 1996 汉诺塔VI 规律
摘要: #includeusing namespace std;typedef long long ll;int main(){ int _,n,i; ll a[40]; a[0]=1; for(i=1;i<30;i++) { a[i]=3*a[i...
阅读全文
posted @ 2015-09-10 19:06 xryz
阅读(110)
评论(0)
推荐(0)
hdu 汉诺塔V 1995 递推
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;typed...
阅读全文
posted @ 2015-09-10 18:57 xryz
阅读(79)
评论(0)
推荐(0)
hdu 2077 汉诺塔IV 递推
摘要: #includeusing namespace std;typedef long long ll;int main(){ ll a[25],b[25]; int i,n,_; b[1]=1; for(i=2;i<=20;i++) b[i]=b[i...
阅读全文
posted @ 2015-09-10 11:48 xryz
阅读(133)
评论(0)
推荐(0)
hdu 1207 汉诺塔II 递推
摘要: #include#include using namespace std;typedef long long ll;int main(){ ll a[70],t; int i,j,n; a[1]=1; a[2]=3; a[3]=5; for(i=4...
阅读全文
posted @ 2015-09-10 11:29 xryz
阅读(90)
评论(0)
推荐(0)
hdu 1025 Constructing Roads In JGShining's Kingdom 最长上升序列nlogn
摘要: #includeusing namespace std;int d[500000+5],a[500000+5];int Binary_search(int s,int t,int i){ int mid; while(s>1; if(i>=d[mid]) s...
阅读全文
posted @ 2015-09-10 10:31 xryz
阅读(119)
评论(0)
推荐(0)
2015年9月8日
hdu 2604 汉诺塔III 递推
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;typed...
阅读全文
posted @ 2015-09-08 20:11 xryz
阅读(95)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
37
下一页
公告