摘要: 过河卒 分析:简单递推题。注意答案要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,- 阅读全文
posted @ 2017-09-09 07:57 lqs2002 阅读(829) 评论(0) 推荐(0) 编辑
摘要: 数的计算 分析:递归即可。不用学他造数。 #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) 编辑
摘要: 三连击 分析:模拟大水题。打表也行。注意输出顺序即可。 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int maxn=10; bool book[maxn]; int main 阅读全文
posted @ 2017-09-03 21:29 lqs2002 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: 棋盘问题 分析:相对于现在几年的第一题要难一点。乘法原理模拟下。因为n,m<=100,我用的O(n^2)完全也没问题,O(n)的的话用等差数列优化下就行了。 #include<iostream> #include<algorithm> using namespace std; int main(){ 阅读全文
posted @ 2017-09-03 19:07 lqs2002 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 这篇ppt很详细 https://wenku.baidu.com/view/d9c9b9220722192e4536f6e1.html 阅读全文
posted @ 2017-08-31 12:17 lqs2002 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 最大流模版题,注意都是将点转换成边。再跑模版即可。 阅读全文
posted @ 2017-08-31 11:44 lqs2002 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 最大流模版题 ek算法迷之tle一点,dinic秒过 阅读全文
posted @ 2017-08-30 21:39 lqs2002 阅读(176) 评论(0) 推荐(0) 编辑
摘要: EK算法: dinic算法: 阅读全文
posted @ 2017-08-30 20:57 lqs2002 阅读(147) 评论(0) 推荐(0) 编辑