随笔分类 -  NOIP

摘要:模拟,注意为偶数的情况 1 #include<cstdio> 2 #include<cstring> 3 #include<cstdlib> 4 #include<iostream> 5 #include<queue> 6 #include<stack> 7 #include<cmath> 8 #i 阅读全文
posted @ 2016-04-23 22:58 yyblues 阅读(266) 评论(0) 推荐(0)
摘要:水题。。直接暴力 1 #include<cstdio> 2 #include<algorithm> 3 using namespace std; 4 const int inf = 0x3f3f3f3f; 5 int a[130][130],d,n,x,y,z,num,ans=-inf; 6 int 阅读全文
posted @ 2016-04-23 22:57 yyblues 阅读(163) 评论(0) 推荐(0)
摘要:借鉴大神思路。。。 1 #include<cstdio> 2 #include<cstring> 3 #include<cstdlib> 4 #include<iostream> 5 #include<queue> 6 #include<stack> 7 #include<cmath> 8 #inc 阅读全文
posted @ 2016-04-23 22:32 yyblues 阅读(238) 评论(0) 推荐(0)
摘要:有多种方案,找拐点数目最简单O(n) 注意此题有相邻点价值一样,代码改变一点 1 #include <cstdio> 2 #include<iostream> 3 #include<cstdlib> 4 #include<algorithm> 5 int s,n,k,i,a,b; 6 int mai 阅读全文
posted @ 2016-04-10 22:37 yyblues 阅读(173) 评论(0) 推荐(0)