2016年3月23日

[2016-03-23][codeforces][580][A][Kefa and First Steps]

摘要: 时间:2016-03-23 13:04:56 星期三 题目编号:[2016-03-23][codeforces][580][A][Kefa and First Steps] 题目大意:求最长上升子串 #include using namespace std;int a[100000 + 100];int main(){ int n; scanf("%d",&n);... 阅读全文

posted @ 2016-03-23 18:36 红洋 阅读(176) 评论(0) 推荐(0)

[2016-03-23][codeforces][560][D][Equivalent Strings]

摘要: 时间:2016-03-23 14:15:39 星期三 题目编号:[2016-03-23][codeforces][560][D][Equivalent Strings] 题目大意:定义两个字符串相等方式,给出两个字符串,问是否相等 分析:递归判断即可 遇到的问题:长度为奇数的字符串一定不相等 #include #include using namespace std;int issame(s... 阅读全文

posted @ 2016-03-23 18:36 红洋 阅读(112) 评论(0) 推荐(0)

[2016-03-23][POJ][3069][Saruman's Army]

摘要: 时间:2016-03-23 18:17:43 星期三 题目编号:[2016-03-23][POJ][3069][Saruman’s Army] 题目大意:在数轴上n个点放半径为r的圆,要求所有点被覆盖,问至少需要多少元 分析:用两个for,第一个for找到圆左边一般能覆盖的点,第二个for求圆后面一般能覆盖的点,这些区域的点放一个圆 #include #include using names... 阅读全文

posted @ 2016-03-23 18:36 红洋 阅读(111) 评论(0) 推荐(0)

[2016-03-23][codeforces][208][A][Dubstep]

摘要: 时间:2016-03-23 00:06:45 星期三 题目编号:[2016-03-23][codeforces][208][A][Dubstep] 题目大意:把字符串中的 “WUB”去掉 #include #include #include using namespace std;int main(){ string str,s; cin>>str; ... 阅读全文

posted @ 2016-03-23 18:35 红洋 阅读(182) 评论(0) 推荐(0)

导航