Codeforces Round 1044 (Div. 2 A-E) A. Redstone? 题目大意:n个齿轮从左到右耦合在一起,数组a表示每个齿轮的齿数。最左边的齿轮依次带动其他齿轮旋转,相邻齿轮旋转速度与齿数成反比。问是否存在一种排列,使得最右边的齿轮旋转速率和最左边的相等。 思路:最右侧齿轮转速为:Xanadu132025年8月29日大约 6 分钟C++codeforcesdp
最长回文子串 题目传送门:https://leetcode.cn/problems/longest-palindromic-substring/description/?envType=study-plan-v2&envId=top-100-likedXanadu132025年2月26日大约 4 分钟C++algorithmdp