这场比较郁闷,C题短路,连续4次WA,导致罚时太多 A - Arithmetic Progression Problem Statement Print an arithmetic sequence with first term A A A, last term B B B, and common difference D D D. You are only given i
C. Watering Flowers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A flowerbed has many flowers and two fountains. You
题目描述 给定一个字符串 s ,找出 至多 包含 k 个不同字符的最长子串 T。 样例描述 示例 1:输入: s = "eceba", k = 2输出: 3解释: 则 T 为 "ece",所以长度为 3。示例 2:输入: s = "aa", k = 1输出: 2解释: 则 T 为 "aa",所以长度为 2。 思路 滑动窗口 只要窗口内元素个数小于k就不断扩张窗口,随后如果大于