果枫-国峰

2016年3月15日

将博客搬至CSDN

摘要: 将博客搬至CSDN 阅读全文

posted @ 2016-03-15 09:41 果枫-国峰 阅读(141) 评论(0) 推荐(0) 编辑

2014年3月24日

U盘启动盘 安装双系统 详细教程

摘要: U盘启动盘,安装双系统,详细教程 阅读全文

posted @ 2014-03-24 00:40 果枫-国峰 阅读(9851) 评论(0) 推荐(0) 编辑

2014年3月15日

vmware安装linux6.3

摘要: 安装信息:1.vmware9.0下载地址:http://pan.baidu.com/share/link?shareid=1287299796&uk=25851214852.oraclelinux6.3下载地址:http://download.chinaunix.net/download.php?id=41062&ResourceID=134253.在vm中配置linux6.3的的信息,2个磁盘(sda磁盘作为主磁盘:50G,sdb作为swap分区磁盘:2G),4个网卡(eth0作为公有网络网口,eth1作为private1网口,eth2作为private2网口,eht3作为连 阅读全文

posted @ 2014-03-15 23:13 果枫-国峰 阅读(355) 评论(0) 推荐(0) 编辑

2012年9月13日

hdu 1284

摘要: 此题我觉得非常的亢爹,用while(cin>>n)输入肯定wa,原因不详,所以此题只能用while(scanf("%d",&n)!=EOF),作为输入语句。ac代码:View Code #include<iostream>using namespace std;const int M=38000;int dp[M];int main(){ /*freopen("in.txt","r",stdin); freopen("out1.txt","w",stdout);* 阅读全文

posted @ 2012-09-13 10:35 果枫-国峰 阅读(147) 评论(0) 推荐(0) 编辑

2012年9月11日

hdu 1426

摘要: 题意:中文题,此处省。ac代码:View Code #include<iostream>using namespace std;int map[12][12];int k; int foat;struct tree{ int i; int j;}node[90];int check(struct tree n,int p){ int i,j; int x,y; for(i=1;i<=9;i++)//判断行与列是否已经存在p { if(map[n.i][i]==p||map[i][n.j]==p) return 0; ... 阅读全文

posted @ 2012-09-11 21:05 果枫-国峰 阅读(120) 评论(0) 推荐(0) 编辑

hdu 1258

摘要: 题意:中文题,省。ac代码:View Code #include<iostream>#include<string.h>#include<algorithm>using namespace std;int a[15];int use[15];int foat;//判断是否要输出“NONE”int t,n;int k;//use[]数组中使用bool cmp(int a,int b){ return a>b;}void dfs(int s,int step,int k){ if(t==s) { foat=1; for(int i=0;i<k-1;i 阅读全文

posted @ 2012-09-11 21:03 果枫-国峰 阅读(121) 评论(0) 推荐(0) 编辑

2012年9月10日

hdu 1166

摘要: 题意:中文题,省。解法:线段树。注意:输入,输出最后用scanf(),printf(),其他的可能超时。ac代码:View Code //线段树,节点更新,区间求和#include<iostream>#include<string>using namespace std;const int M=50000+10;//最大区间int num[M];//记录每一个营的人数struct treestruct{ int left;//左区间 int right;//右区间 int sum;//区间求和}node[M*3];//节点数大约是最大区间的3倍int build(int 阅读全文

posted @ 2012-09-10 17:01 果枫-国峰 阅读(111) 评论(0) 推荐(0) 编辑

hdu 1556

摘要: View Code #include<iostream>using namespace std;const int M=100000+9;struct treenode{ int left;//左区间 int right;//右区间 int sum; //区间之和}node[M*3];//节点数大约是最大区间的3被void build(int low,int top,int index)//功能:建树{ node[index].left=low; node[index].right=top; node[index].sum=0; if(low==top... 阅读全文

posted @ 2012-09-10 15:41 果枫-国峰 阅读(129) 评论(0) 推荐(0) 编辑

2012年9月8日

hdu 1160 题意

摘要: 题意:第1列单调递增,第2列单调递减,满足这两个要求最长的子序列。ac代码:View Code #include<iostream>#include<stack>#include<algorithm>using namespace std;struct node{ int num;//记录输入的顺序 int weight; int rate; const bool operator<(struct node &d)const{ //重载小于号,作用:结构体中的元素按weight的升序排列 return weight<d.weight; } 阅读全文

posted @ 2012-09-08 19:59 果枫-国峰 阅读(288) 评论(0) 推荐(0) 编辑

2012年9月6日

hdu 1228 A+B

摘要: 题意:如题。ac代码:#include<iostream>#include<string>using namespace std;int change(string ch){ /*switch(ch) { case "zero":return 0; }*/ if(ch=="zero") return 0; if(ch=="one") return 1; if(ch=="two") return 2; if(ch=="three") return 3; if(ch==&qu 阅读全文

posted @ 2012-09-06 16:26 果枫-国峰 阅读(228) 评论(0) 推荐(0) 编辑

导航