上一页 1 2 3 4 5 6 ··· 127 下一页

2026年11月3日

摘要: https://www.acwing.com/problem/content/description/526/ Kiana 最近沉迷于一款神奇的游戏无法自拔。 简单来说,这款游戏是在一个平面上进行的。 有一架弹弓位于 (0,0) 处,每次 Kiana 可以用它向第一象限发射一只红色的小鸟, 小鸟们的 阅读全文
posted @ 2026-11-03 00:09 itdef 阅读(7) 评论(0) 推荐(0)

2026年11月1日

摘要: https://www.luogu.com.cn/problem/P17829?contestId=369911 题目描述 小 R 有 n 个非负整数 a1,a2,…,an。 小 X 给了小 R 一个正整数 m,并要求小 R 从这 n 个非负整数中选出恰好 m 个,使得选出的 m 个数的二进制按位与 阅读全文
posted @ 2026-11-01 12:06 itdef 阅读(73) 评论(0) 推荐(0)

2026年10月30日

摘要: https://www.acwing.com/problem/content/description/283/ 给定 N 种硬币,其中第 i 种硬币的面值为 Ai,共有 Ci个。 从中选出若干个硬币,把面值相加,若结果为 S,则称“面值 S 能被拼成”。 求 1∼M之间能被拼成的面值有多少个。 输入 阅读全文
posted @ 2026-10-30 18:22 itdef 阅读(11) 评论(0) 推荐(0)

2026年10月23日

摘要: https://www.acwing.com/problem/content/description/274/ 熊大妈的奶牛在小沐沐的熏陶下开始研究信息题目。 小沐沐先让奶牛研究了最长上升子序列,再让他们研究了最长公共子序列,现在又让他们研究最长公共上升子序列了。 小沐沐说,对于两个数列 A和 B 阅读全文
posted @ 2026-10-23 20:33 itdef 阅读(5) 评论(0) 推荐(0)

2026年10月22日

摘要: https://leetcode.cn/problems/maximum-subarray/description/ 给你一个整数数组 nums ,请你找出一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 子数组是数组中的一个连续部分。 示例 1: 输入:nums = [-2,1 阅读全文
posted @ 2026-10-22 16:38 itdef 阅读(7) 评论(0) 推荐(0)
摘要: 习题地址 https://www.acwing.com/problem/content/description/280/ 给定 N个正整数 A1,A2,…,AN,从中选出若干个数,使它们的和为 M,求有多少种选择方案。 输入格式 第一行包含两个整数 N 和 M。 第二行包含 N 个整数,表示 A1, 阅读全文
posted @ 2026-10-22 11:42 itdef 阅读(12) 评论(0) 推荐(0)

2026年10月20日

摘要: https://leetcode.cn/problems/maximize-the-minimum-powered-city/description/ 给你一个下标从 0 开始长度为 n 的整数数组 stations ,其中 stations[i] 表示第 i 座城市的供电站数目。 每个供电站可以在 阅读全文
posted @ 2026-10-20 13:18 itdef 阅读(4) 评论(0) 推荐(0)

2026年10月19日

摘要: https://leetcode.cn/problems/ipo/description/?envType=study-plan-v2&envId=top-interview-150 假设 力扣(LeetCode)即将开始 IPO 。为了以更高的价格将股票卖给风险投资公司,力扣 希望在 IPO 之前 阅读全文
posted @ 2026-10-19 00:07 itdef 阅读(5) 评论(0) 推荐(0)

2026年9月17日

摘要: https://leetcode.cn/problems/apply-operations-to-make-all-array-elements-equal-to-zero/description/ 给你一个下标从 0 开始的整数数组 nums 和一个正整数 k 。 你可以对数组执行下述操作 任意次 阅读全文
posted @ 2026-09-17 19:31 itdef 阅读(23) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/divide-intervals-into-minimum-number-of-groups/description/ 给你一个二维整数数组 intervals ,其中 intervals[i] = [lefti, righti] 表示 闭 阅读全文
posted @ 2026-09-17 13:49 itdef 阅读(19) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 127 下一页

导航