枚举法 尺取法
obsorb_knowledge
心有不甘,呼唤着我
展开
-
CodeForces - 814C
题目链接:http://codeforces.com/problemset/problem/814/C 题意: 输入一个n,下一行是长度为n的字符串,再输入一个m,下面有m行,每行一个数字k一个字符c,意思是,找不是c的字符变换k次后,变成c,找最长连续的c的长度; 方法一: 用枚举法,枚举每个区间: #include #include #include using names原创 2017-08-11 15:44:23 · 259 阅读 · 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 · 275 阅读 · 0 评论