2014年3月26日
摘要: #includeusing namespace std;void main(){ char arr[1000]; int a,n; int s,t; cin>>a; getchar(); for(int i=0;i=s;l--) { coutHintRemember to use ... 阅读全文
posted @ 2014-03-26 11:20 mnmlist1 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;void main(){ int b,c,sum=0; while(scanf("%d",&b)!=EOF) { sum=0; for(int i=0;i>c; sum+=c; } cout<<sum<<endl; }}Pro... 阅读全文
posted @ 2014-03-26 10:18 mnmlist1 阅读(366) 评论(0) 推荐(0) 编辑
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) 编辑
2014年3月22日
摘要: 好操蛋啊,电梯竟然能原地不动,你大爷的,这逻辑,太弱智了。。。。Problem :1008 ( Elevator )Judge Status :AcceptedRunId : 10371112Language : C++Author :mnmlistCode Render Status :Rende... 阅读全文
posted @ 2014-03-22 20:29 mnmlist1 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 经验总结:一定要注意输出的格式,字符的空格,空行,一定要观察清楚。如本题的最后一个输出结果后面没有空行。最后代码实现的时候需要判断一下,代码如下 cout#includeusing namespace std;#define max 1001void main(){ char str1[m... 阅读全文
posted @ 2014-03-22 19:08 mnmlist1 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.结果输出行最后不能有空格,真操蛋啊2.ALT +F8快速整理代码格式3.%x 可以先%x,得到运算结果再%x,否则容易运算超时4.Ctrl+F5运行程序,不用再system("pause")了5.The input consists of multiple test cases. Each t... 阅读全文
posted @ 2014-03-22 13:19 mnmlist1 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/middle544291353/article/details/7723427这题看起来很容易,不过格式很多限制,比如内存,运行时间等的限制。所以递归是行不通的。经过思考,看看组合数学,竟然还是没头脑,虽然知道周期为7*7=49.但是还是AC不了,结果... 阅读全文
posted @ 2014-03-22 13:06 mnmlist1 阅读(146) 评论(0) 推荐(0) 编辑