1775

1775.equal sum arrays with minimum number of operations

Description 1775.equal-sum-arrays-with-minmum-number-of-operations Solution hash table + greedy algorithm The general idea of this problem is hash + g ......
operations minimum arrays number equal

CF1775

[A1&A2.Gardener and the Capybaras (hard version)](https://www.luogu.com.cn/problem/CF1775A2) 超级诈骗题。 直接 $O(n^3)$ 枚举肯定不行。 我们考虑两种情况: 1. B 最小:直接看最小的字符是否在区 ......
1775 CF

1775.通过最少操作次数使数组的和相等

问题描述 1775.通过最少操作次数使数组的和相等 解题思路 哈希+贪心 本题总体思路为哈希+贪心,用两个数组mp1,mp2记录nums1,nums2中每个数各出现了多少次; 假设nums1的和sum1减去nums2的和sum2的结果为diff,这里假设diff > 0,为了抹平两个数组的和的差距, ......
数组 次数 1775

CF 合集 (1751-1775)

### 1753. [Codeforces Round #829 (Div. 1)](https://codeforces.com/contest/1753) Performance 2343. #### A2. Make Nonzero Sum (hard version) 如果序列和为奇数,即不 ......
1751 1775 CF

洛谷 P1775 石子合并(弱化版)(区间DP)

###洛谷题面 https://www.luogu.com.cn/problem/P1775 ###AcWing题面 https://www.acwing.com/problem/content/description/284/ #include<bits/stdc++.h> using names ......
区间 石子 P1775 1775
共5篇  :1/1页 首页上一页1下一页尾页