04 2016 档案

subsequence 尺取法
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 6 int arr[1000010]; 7 8 int main() 9 { 10 int T,n,S; 11 scanf 阅读全文

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

String 尺取法
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 char s[1000010]; 6 int vis[300]; 7 int main() 8 { 9 int tt,k,ss,t; //ss 表示低的指针 t代表 阅读全文

posted @ 2016-04-29 16:06 青春的梦想付诸行动 阅读(187) 评论(0) 推荐(0)

dos 命令
摘要:dir 查看目录cd 文件夹 进入文件夹cd.. 退到上一级目录cd\ 到c盘md 创建文件夹rd 删除文件夹 (文件夹必须为空)del 删除文件 (*代表所有)exut 退出dos命令行 阅读全文

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

又见01背包
摘要:1 #include <cstdio> 2 #include <algorithm> 3 #include <cmath> 4 using namespace std; 5 int dp[10001]; 6 int v[105],w[105]; 7 int main() 8 { 9 int n,W, 阅读全文

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

01串
摘要:1 #include <cstdio> 2 using namespace std; 3 4 int dp[45]; 5 int main() 6 { 7 int n,m; 8 dp[2]=3; 9 dp[1]=2; 10 for(int i=3;i<41;i++) 11 dp[i]=dp[i-1] 阅读全文

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

BestCoder Round #81 (div.2) Matrix
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 int s[1001][1001]; 6 7 int main() 8 { 9 int t,m,n,q,a,x,y; 10 scanf("%d",&t); 11 w 阅读全文

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

BestCoder Round #81 (div.2)Machine
摘要:1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 using namespace std; 5 6 char s[31]; 7 char arr[3]={'R','G','B'}; 8 long long ans[31] 阅读全文

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

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

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

scanf和gets
摘要:scanf函数输入字符串时,回车没有放在字符串中、继续输入字符时不影响 空格和回车标志结束 gets函数输入字符串时,回车字符放在字符串中,当做'\n'; 当第一次输入字符串是,当之前有数据输入时,应该用getchar()函数保存回车、 不是第一次时,没有影响,。 仅仅当回车标志结束 阅读全文

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

红黑树
摘要:1 #include <cstdio> 2 #include <iostream> 3 #include <cstring> 4 #include <cmath> 5 using namespace std; 6 struct node { 7 int l,r; 8 }; 9 node s[10]; 阅读全文

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

刘德华
摘要:导师: 林子祥 周润发 跑龙套时尽心尽力做最好的自己,被导师发现成功演了第一步主角电影《投奔怒海》 有机会不能放过。 林子祥开玩笑说了一句他很有音乐天赋,他每天努力的锻炼,最后自己编曲写歌唱歌,最后林子祥帮了他。 看准目标努力实现。 当被公司雪藏了,刘德华积极和公司上层交流,一年以后可以出来。 学会 阅读全文

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

4-20 到 9-1开学
摘要:( 6-7 计划) 上午 : 背俩个小时的单词(7-9), 上午 练习算法(做点前天晚上看的算法知识),下午练习算法,晚上学习看视频并且学习算法知识。 (6-7 6-18) 每天学习 英语 做题 ,练习听力 (6-18 开学9-1) 上午 :背俩个小时单词(7-9), 上午下午跟着java web学 阅读全文

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

等式 hash
摘要:刚开始想都不用想用了暴力 当然超时。 根据题目要求10000k内存 一般64m内存即可以通过 利用hash函数建立,时间通过。但内存超出了。。。代码1 1 2 3 #include <cstdio> 4 #include <cstring> 5 using namespace std; 6 7 sh 阅读全文

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

士兵杀敌二 (树状数组)
摘要:1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 int a[1000010],c[1000010]; 6 int N,M; 7 8 int lowbit(int x) 9 { 10 return x&(-x); 阅读全文

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

士兵杀敌 一
摘要:1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 int n,m,s[1000010],x,y; 6 7 int main() 8 { 9 scanf("%d%d",&n, 阅读全文

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

区间调度问题 选择不相交的区间(最多)
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 #define LL long long 5 6 using namespace std; 7 8 struct node{ 9 int x,y; 10 }; 11 n 阅读全文

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

字母有重复全排列
摘要:1 #include <stdio.h> 2 3 int n; 4 char s[15]; 5 char ss[15]={'A','B','C','D','E','F','G','H','I','J'}; 6 7 void dfs(int cur) //cur表示第几个位置 8 { 9 if(cur 阅读全文

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

括号配对问题
摘要: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 青春的梦想付诸行动 阅读(126) 评论(0) 推荐(0)

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

posted @ 2016-04-14 20:48 青春的梦想付诸行动 阅读(153) 评论(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 青春的梦想付诸行动 阅读(150) 评论(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 青春的梦想付诸行动 阅读(158) 评论(0) 推荐(0)

最小步数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 青春的梦想付诸行动 阅读(209) 评论(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 青春的梦想付诸行动 阅读(131) 评论(0) 推荐(0)

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

posted @ 2016-04-12 21:36 青春的梦想付诸行动 阅读(405) 评论(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 青春的梦想付诸行动 阅读(186) 评论(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 青春的梦想付诸行动 阅读(172) 评论(0) 推荐(0)

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 青春的梦想付诸行动 阅读(375) 评论(0) 推荐(0)

三个水杯
摘要:1 #include <cstdio> 2 #include <cstring> 3 #include <queue> 4 5 using namespace std; 6 struct node { 7 int wat[3]; //记录中间过程状态 8 int step;//最小倒水次数。 9 } 阅读全文

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

部分和
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstring> 6 7 using namespace std; 8 int n,k,c,sum,s[20 阅读全文

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

BestCoder Round #79 jrMz and angles
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 5 using namespace std; 6 7 int main() 8 { 9 int n,m,t,flag; 10 double a,b; 11 scanf("%d 阅读全文

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

Yougth的最大化
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <cmath> 5 6 using namespace std; 7 8 #define N 10010 9 10 double w[N],v[N] 阅读全文

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

疯牛
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 #include<cstdio> 5 using namespace std ; 6 typedef long long LL; 7 LL a[101000]; 8 int 阅读全文

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

阶乘之和
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 int s[11]; 6 bool visit[11]; 7 void ans() 8 { 9 for(int i=1; 阅读全文

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

NYOJ 12 喷水装置(二)
摘要:1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #include<algorithm> 5 using namespace std; 6 struct ps 7 { 8 double left;//**左交点**// 9 d 阅读全文

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

导航