尺取法
马角的逆袭
很菜的菜鸡
展开
-
Educational Codeforces Round 87 (Rated for Div. 2) B. Ternary String滑动窗口板子题
B. Ternary String time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a string s such that each its character is either 1, 2, or 3. You have to choose the shortest contiguous substring of原创 2020-05-17 18:22:43 · 232 阅读 · 0 评论 -
POJ3061 Subsequence 尺取法
链接:https://ac.nowcoder.com/acm/problem/107658 来源:牛客网 A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of t原创 2020-05-15 18:07:40 · 573 阅读 · 0 评论