2014年3月23日
摘要: tips:分析不够仔细,白费了许多功夫。输入数据的范围,平时几乎很少考虑的,这个以后得注意。代码检查不够仔细啊,以后得注意了#includeusing namespace std;void main(){ int n=0,sum=0; char s[1000]; while(cin>>s) { ... 阅读全文
posted @ 2014-03-23 16:30 mnmlist1 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /*tips:本题只有输入,没有输出,在线测试只检测结果,所以将前面几个结果罗列出来就OK了。为了格式输出问题纠结了半天,最后答案竟然还是错的。。。。所以啊,做题还是得灵活变通。*/#includeusing namespace std;double Ecal(int n);double Cal(i... 阅读全文
posted @ 2014-03-23 11:27 mnmlist1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: /*tips:最后返回指针很重要 bt root=NULL;root=Create(root);*/#includeusing namespace std;typedef struct Btree{ char data; Btree *lchild,*rchild;}Btree,*bt;bt Cre... 阅读全文
posted @ 2014-03-23 10:28 mnmlist1 阅读(179) 评论(0) 推荐(0) 编辑