2013年7月21日

Topcoder SRM 585 DIV2 解题报告 //缺1000

摘要: ------------LISNumberDivTwo最小的连续递增子序列的个数。。。----从前往后扫描一遍即可。。#include #include #include #include using namespace std; class LISNumberDivTwo{ private: public: int calculate(vector seq) { int ans=0; int n=seq.size(); for (int i=0;i0)f[0]=... 阅读全文

posted @ 2013-07-21 22:50 电子幼体 阅读(155) 评论(0) 推荐(0) 编辑

Codeforces Round #192 (Div. 2) 解题报告 //缺E

摘要: ---------------A. CakeminatorrXc的蛋糕中有一些邪恶的草莓,如果某一行或某一列没有草莓我们可以吃掉这一排。问最多能吃多少蛋糕。----直接暴力寻找空行空列即可。#include #include using namespace std; const int maxn=21; char s[maxn][maxn]; bool v[maxn][maxn]; int r,c; int main() { memset(v,0,sizeof(v)); cin>>r>>c; for (int i=1;i>(s[i]+1); for ... 阅读全文

posted @ 2013-07-21 22:34 电子幼体 阅读(106) 评论(0) 推荐(0) 编辑

导航