摘要: 开一个二维数组记录星号的个数。。。。View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 using namespace std; 5 const int maxn = 2005; 6 int sum[ maxn ][ maxn ];//sum[i][j]:记录从mat 1 1到mat i j 的“ * ”的个数 7 int mat[ maxn ][ maxn ]; 8 char s[ maxn ]; 9 int main(){10 int n,m;11 whil 阅读全文
posted @ 2013-03-23 22:13 xxx0624 阅读(330) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /* 2 几何+判断点在四边形内 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue> 10 //#include<map> 11 #include<math.h> 12 using namespace std; 13 typedef long long ll; 14 //ty 阅读全文
posted @ 2013-03-23 15:23 xxx0624 阅读(209) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /* 2 最大连续上升子序列和 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue>10 //#include<map>11 #include<math.h>12 using namespace std;13 typedef long long ll;14 //typedef 阅读全文
posted @ 2013-03-23 13:08 xxx0624 阅读(369) 评论(0) 推荐(0) 编辑