- 博客(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 630
原创 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 444 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 352
原创 (完全背包)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 582
原创 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 569
原创 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 622
转载 二叉树的建立和遍历、引用和二级指针传参
<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 1071 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 3446 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 2190
转载 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 9165
转载 如何构建二叉树
说干就干,先上一篇昨天写的文章。以一道题目来说明如何建立二叉树。 题目:已知先序遍历,中序遍历 建立二叉树,然后求后序遍历。 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 714 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 506
原创 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 420
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人