自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 POJ 1051 P,MTHBGWB 简单字符串转换

P,MTHBGWBTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5309 Accepted: 3048DescriptionMorse code represents characters as variable length sequences of dots and dashes. In practice, characters in a message are delimited by short pauses. The follo

2011-04-13 20:15:00 622

原创 Radar Installations

<br />DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the coasting, can only cover d distance, so

2011-05-05 12:56:00 405 7

原创 dp Happy Travel

<br /><br />1.问题描述与分析<br /> <br />Amy和Ray外出徒步春游,携带了若干件行李,每件行李都有各自的重量(整数)。他们互相关爱,不愿对方比自己更累,想把行李分成重量相当的两份各自携。<br /> <br /> <br />#include<iostream><br />#include<string><br />using namespace std;<br />int w[101];<br />int val[101];<br />int main()<br />{<br

2011-05-03 21:57:00 349

原创 (完全背包)The cicerone’s abacus

<br />The cicerone’s abacus时间限制(普通/Java):1000MS/3000MS              运行内存限制:65536KByte<br />总提交:1015                测试通过:337<br /><br />描述<br /> <br /> <br />输入<br />The input file contains multiple test cases. For each case the first line includes a positi

2011-05-03 20:38:00 561

原创 Hero Shoot Eagle

<br /><br />#include<iostream><br />#include<algorithm><br />#include<cstring><br />using namespace std;<br /> <br />bool inorder(int a,int b)<br />{<br />return(a>=b);<br />}<br /> <br />template<typename Iterator><br />int* lcsLength(Iterator x,Iterator

2011-04-30 11:50:00 563

原创 Cow Solitaire

<br /><br />Cow Solitaire<br /><br /><br />Late summer on the farm is a slow time, very slow. Betsy has little to do but play cow solitaire. For self-evident reasons, cow solitaire is not so challenging as any number of solitaire games played by humans.<br

2011-04-30 00:01:00 615

转载 二叉树的建立和遍历、引用和二级指针传参

<br />http://blog.163.com/zhangzilong_84/blog/static/514559692008111521715165/<br /> <br /> <br />二叉树  <br />                       a<br />                     /    /<br />                   b      d<br />                /<br />             c    <br />#inc

2011-04-26 13:25:00 1068 2

原创 C++建立单向链表链表头指针需要使用指针类型的引用参数?

 struct Node{int date; Node *next;};void CreateList(Node *&head) //引用参数是表头指针{s=new Node;cin>>s->data;while(s->data!=0){if(head==NULL)head=s;else p->next=s;p=s;s=new Node;cin>>s->data;}p->next-NULL;delete s;return;}函数需要修改指针的内

2011-04-26 13:12:00 3434 1

转载 JAVA _Save could not be completed.MyEclipse国际化的问题解决

<br />点击保存文件时弹出的错误<br /><br />后面跟着:<br />Reason:<br />  some characters cannot be mapped using "Cp1252" character encoding.<br />  Either change the encoding or remove characters which are not supported<br />  by the "Cp1252" character encoding<br /><br />

2011-04-25 23:10:00 2181

转载 Run-Time Check Failure #2分析(转载)

Run-Time   Check   Failure   #2     一般是栈被破坏,代码可能有缓冲区溢出一类的问题。有的是调用代码中的临时变量在函数调用结束时提示出错。Run-Time Check Failure #2 - Stack around the variable 's' was corrupted http://www.codeguru.com/forum/showthread.php?t=299770http://social.msdn.microsoft.com/Forums/en-US

2011-04-24 16:09:00 9156

转载 如何构建二叉树

说干就干,先上一篇昨天写的文章。以一道题目来说明如何建立二叉树。  题目:已知先序遍历,中序遍历 建立二叉树,然后求后序遍历。  e.g.    先序:a b d e i j c f g           中序:d b i e j a f c g           后序:d i j e b f g c a //期望结果解法:先序中的首元素a 必为该二叉树的根结点,在中序序列里a之前的元素一定是a的左子树部分,a之后的元素一定为a的右子树部分。所以,可以看作,先序: root | 左子树 | 右子树   

2011-04-23 17:44:00 712 1

原创 1951 Extra Krunch

Extra KrunchTime Limit: 1000MS Memory Limit: 30000K Total Submissions: 4146 Accepted: 1014 DescriptionA krunched word has no vowels ("A", "E", "I", "O", and "U") and no repeated letters. Removing vowels and letters that appear twice or more f

2011-04-14 14:14:00 499

原创 1917Automatic Poetry

<br />Automatic Poetry<br />Time Limit: 1000MS Memory Limit: 30000K <br />Total Submissions: 1559 Accepted: 810 <br />Description<br />Background <br />"Oh God", Lara Croft exclaims, "it's one of these dumb riddles again!" <br />In Tomb Raider XIV, Lara

2011-04-14 12:43:00 410

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除