09 2017 档案
摘要:过河卒 分析:简单递推题。注意答案要longlong #include<iostream> #include<algorithm> using namespace std; int dx[10]={0,-1,-1,1,1,2,2,-2,-2},dy[10]={0,2,-2,2,-2,1,-1,1,-
阅读全文
摘要:数的计算 分析:递归即可。不用学他造数。 #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
阅读全文
摘要:/雾 noip2000发生了什么?为什么洛谷上就一道题- - 计算器的改良 分析:字符串模拟题。记录分别记录等式两边的系数与常数即可。以前在codevs上做过,也就直接把代码贴上来了。 #include<iostream> #include<algorithm> #include<cstdio> #
阅读全文
摘要:不知怎么地,洛谷的noip1999普及组的题和以前考的不一样 /雾 回文数 分析:一道高精度加法的模拟题,注意还有16进制。 #include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespac
阅读全文
摘要:三连击 分析:模拟大水题。打表也行。注意输出顺序即可。 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int maxn=10; bool book[maxn]; int main
阅读全文
摘要:棋盘问题 分析:相对于现在几年的第一题要难一点。乘法原理模拟下。因为n,m<=100,我用的O(n^2)完全也没问题,O(n)的的话用等差数列优化下就行了。 #include<iostream> #include<algorithm> using namespace std; int main(){
阅读全文

浙公网安备 33010602011771号