
枚举法 尺取法
obsorb_knowledge
心有不甘,呼唤着我
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CodeForces - 814C
题目链接:http://codeforces.com/problemset/problem/814/C题意: 输入一个n,下一行是长度为n的字符串,再输入一个m,下面有m行,每行一个数字k一个字符c,意思是,找不是c的字符变换k次后,变成c,找最长连续的c的长度;方法一:用枚举法,枚举每个区间:#include#include#includeusing names原创 2017-08-11 15:44:23 · 297 阅读 · 0 评论 -
ACM-ICPC 2018 北京赛区网络预赛 80 Days
时间限制:1000ms单点时限:1000ms内存限制:256MB描述80 Days is an interesting game based on Jules Verne's science fiction "Around the World in Eighty Days". In this game, you have to manage the limited money an...原创 2018-09-23 16:48:32 · 334 阅读 · 0 评论