资源列表
[数学计算/工程计算] A2_29
说明:输入开始日期和截止日期,计算从开始日期到截止日期共有多少个2月29日。输入第一行为T个测试用例,每个测试用例包含两行,第一行为开始日期,第二行为截止日期。输出每个测试用例包含的2月29的个数(包含截止日期)。-Enter the start date and due date, calculated the start date to the closing date of the total number of February 29. Enter the first acts of T t<邹业> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] getAllPalindromeSubStr
说明:给定字符串,求它的回文子序列个数。回文子序列反转字符顺序后仍然与原序列相同。例如字符串aba中,回文子序列为 a , a , aa , b , aba ,共5个。内容相同位置不同的子序列算不同的子序列。-Given a string, find its number of sub-palindromic sequence. Palindromic sequences reversed the order of characters remains the same as the original<邹业> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] getTheRightPosition
说明:需要在一个N × M的网格中建立一个通讯基站,通讯基站仅必须建立在格点上。 网格中有A个用户,每个用户的通讯代价是用户到基站欧几里得距离的平方。 网格中还有B个通讯公司,维护基站的代价是基站到最近的一个通讯公司的路程(路程定义为曼哈顿距离)。 在网格中建立基站的总代价是用户通讯代价的总和加上维护基站的代价,最小总代价。-The need to establish a communications base in an N × M grid, communicatio<邹业> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] LSM
说明:Matlab code for LMS algorithm with its weights as output.. Code is simple and min line cocde-Matlab code for LMS algorithm with its weights as output.. Code is simple and min line cocde..<Rohit Bhoi> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] square-approximation
说明:关于数值分析中最佳平方逼近的算法,逼近效果比较好。-Numerical analysis on the best squares approximation algorithm approach is better.<申一平> 在 2025-06-17 上传 | 大小:1kb | 下载:0
[数学计算/工程计算] rect
说明:直角坐标平面上有一长为W、高为H的大矩形。该大矩形被划分为N个不相交的小矩形,且这些小矩形恰好拼成该大矩形。给定K,求一个面积最大的矩形R,使得R由部分给定的小矩形恰好拼成,且这些小矩形的数目不超过K个。-A length of W, height H of the large rectangular Cartesian coordinate plane. The large rectangle is divided into N disjoint small rectangle, and th<Chen Haifeng> 在 2025-06-17 上传 | 大小:1kb | 下载:0