摘要: 数的计算 分析:递归即可。不用学他造数。 #include<iostream> #include<algorithm> using namespace std; int f(int n){ int ret=1; for(int i=1;i<=n/2;++i){ ret+=f(i); } return 阅读全文
posted @ 2017-09-04 21:22 lqs2002 阅读(722) 评论(0) 推荐(0) 编辑
摘要: /雾 noip2000发生了什么?为什么洛谷上就一道题- - 计算器的改良 分析:字符串模拟题。记录分别记录等式两边的系数与常数即可。以前在codevs上做过,也就直接把代码贴上来了。 #include<iostream> #include<algorithm> #include<cstdio> # 阅读全文
posted @ 2017-09-04 18:26 lqs2002 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 不知怎么地,洛谷的noip1999普及组的题和以前考的不一样 /雾 回文数 分析:一道高精度加法的模拟题,注意还有16进制。 #include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespac 阅读全文
posted @ 2017-09-04 18:16 lqs2002 阅读(1102) 评论(0) 推荐(0) 编辑