摘要:
来源:LeetCode 链接:https://leetcode.cn/problems/minimum-operations-to-exceed-threshold-value-ii/description/?envType=daily-question&envId=2025-01-15 题目: 给 阅读全文
摘要:
A. Two Frogs 题目大意: 给定一个数组和两个点i,j,每次i先向i移动一次,然后j向i移动一次,当某一点最后移动一次使另外一点无法移动时,此点胜,i胜输出'YES',j胜输出'NO' 大致思路: 经过模拟可知,如果i,j之间距离为奇数,i胜,偶数,j胜 代码 `#include<bits 阅读全文
摘要:
来源:LeetCode 链接:https://leetcode.cn/problems/number-of-ways-to-split-array/description/?envType=daily-question&envId=2025-01-13 题目: 给你一个下标从 0 开始长度为 n 的 阅读全文
摘要:
来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/largest-combination-with-bitwise-and-greater-than-zero/description/?envType=daily-question&envId=2025- 阅读全文