摘要:
codevs1020 孪生蜘蛛 1020 孪生蜘蛛 题目描述 Description 在G城保卫战中,超级孪生蜘蛛Phantom001和Phantom002作为第三层防卫被派往守护内城南端一带极为隐秘的通道。 根据防护中心的消息,敌方已经有一只特种飞蛾避过第二层防卫,直逼内城南端通道入口。但优秀的蜘 阅读全文
posted @ 2017-04-07 21:40
ANhour
阅读(182)
评论(0)
推荐(0)
摘要:
1、Xxy 的车厢调度(train.cpp/c/pas)Description , 再从 B 方向驶出,同时它的车厢可以重新组合。假设从 A 方向驶来的火车有 n 节(n<=1000) ,分别按照顺序编号为 1,2,3,…,n。假定在进入车站前,每节车厢之间都不是连着的,并且它们可以自行移动到 B处 阅读全文
posted @ 2017-04-07 21:05
ANhour
阅读(348)
评论(3)
推荐(1)
摘要:
1 //最大上升子序列和 2 #include<iostream> 3 #include<cstdio> 4 #include<cstdlib> 5 using namespace std; 6 const int maxx=1001; 7 int a[maxx],g[maxx]; 8 int ma 阅读全文
posted @ 2017-04-07 20:09
ANhour
阅读(734)
评论(0)
推荐(1)
摘要:
1 //最长公共子序列 2 #include<iostream> 3 #include<cstdio> 4 #include<cstdlib> 5 using namespace std; 6 string s1,s2; 7 int f[100][100]; 8 int main() 9 { 10 阅读全文
posted @ 2017-04-07 20:07
ANhour
阅读(128)
评论(0)
推荐(0)
摘要:
1 //怪盗基德的滑翔翼 2 #include<iostream> 3 #include<cstdio> 4 #include<cstdlib> 5 #include<cstring> 6 using namespace std; 7 const int maxx=102; 8 int a[maxx 阅读全文
posted @ 2017-04-07 20:07
ANhour
阅读(937)
评论(0)
推荐(0)
摘要:
1 //合唱队形 (同登山) 2 #include<iostream> 3 #include<cstdio> 4 #include<cstdlib> 5 using namespace std; 6 const int maxx=101; 7 int a[maxx],b[maxx],c[maxx]; 阅读全文
posted @ 2017-04-07 20:05
ANhour
阅读(478)
评论(0)
推荐(0)
摘要:
第一讲、Fibonacii (1) 1 //斐波那契递归求解 2 #include<iostream> 3 #include<cstdio> 4 #include<cstdlib> 5 using namespace std; 6 int f(int x) 7 { 8 if(x==1||x==2)r 阅读全文
posted @ 2017-04-07 19:15
ANhour
阅读(209)
评论(0)
推荐(0)

浙公网安备 33010602011771号