上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

2016年4月15日

括号配对问题

摘要: 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 #include <stack> 5 #include <algorithm> 6 #include <cmath> 7 using namespace std; 8 9 st 阅读全文

posted @ 2016-04-15 11:09 青春的梦想付诸行动 阅读(124) 评论(0) 推荐(0)

2016年4月14日

栈内存 堆内存 区别

摘要: 调用函数时,主调的函数所拥有的局部变量等信息需要存储在特定的内存区域,这个区域成为栈内存。 利用new或mollock进行分配的内存区域别称为堆内存。 栈内存在程序启动时被统一分配,此后不能在扩大,由于这一区域有上限,所以函数的递归深度也有上限。虽然与函数中定义的局部变量的数目有关,不过一般情况下c 阅读全文

posted @ 2016-04-14 20:48 青春的梦想付诸行动 阅读(148) 评论(0) 推荐(0)

zb的生日

摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cstring> 5 #include <cmath> 6 using namespace std; 7 int w[30],vis[30]; / 阅读全文

posted @ 2016-04-14 19:58 青春的梦想付诸行动 阅读(148) 评论(0) 推荐(0)

Max Sum

摘要: 1 #include <cstdio> 2 #include <algorithm> 3 using namespace std; 4 5 int main() 6 { 7 int t,temp,n,ans,j,x,z,sum,cc=0; //sum存放最大数值 x代表下表最小 z代表最大下表 cc 阅读全文

posted @ 2016-04-14 17:59 青春的梦想付诸行动 阅读(156) 评论(0) 推荐(0)

2016年4月13日

最小步数NYOJ bfs

摘要: 1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 using namespace std; 5 6 int d[9][9]; //标记此点是否访问并记录距离 7 int maze[9][9]={ 8 1,1,1,1,1,1,1 阅读全文

posted @ 2016-04-13 18:10 青春的梦想付诸行动 阅读(207) 评论(0) 推荐(0)

组合数

摘要: 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 using namespace std; 7 8 int s[11],n,r,vis[ 阅读全文

posted @ 2016-04-13 10:45 青春的梦想付诸行动 阅读(127) 评论(0) 推荐(0)

2016年4月12日

学习

摘要: 转自知乎。 原问题为:怎样看待 12 个月内自学完成 4 年麻省理工学院计算机科学的 33 门课程的 Scott H. Young 所谓的超速学习理论和方法(费曼技巧)以及背后「Get More from Life」的理念? 战隼回答: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明 阅读全文

posted @ 2016-04-12 21:36 青春的梦想付诸行动 阅读(395) 评论(0) 推荐(0)

素数环

摘要: 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 using namespace std; 7 8 int prime[13]={2,3 阅读全文

posted @ 2016-04-12 20:12 青春的梦想付诸行动 阅读(180) 评论(0) 推荐(0)

数独

摘要: 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <iostream> 5 using namespace std; 6 7 int s[9][9];//数独 8 9 bool ans(int x,i 阅读全文

posted @ 2016-04-12 10:41 青春的梦想付诸行动 阅读(169) 评论(0) 推荐(0)

2016年4月11日

nyoj迷宫寻宝(一)

摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <queue> 6 7 using namespace std; 8 struct node{ 9 int 阅读全文

posted @ 2016-04-11 21:20 青春的梦想付诸行动 阅读(372) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

导航