03 2023 档案
摘要:题目描述 小 I 今天学习了快速最小公倍数变换(Fast Least-Common-Multiple Transform, FLT),于是他想考考你。 给定一个长度为 的正整数序列 。你需要做以下操作恰好一次: 选择整数 使得 $1 \le
阅读全文
摘要:题目描述 本题中,你需要解决完全背包问题。 有 种物品,第 种物品单个体积为 、价值为 。 次询问,每次给出背包的容积 ,你需要选择若干个物品,每种物品可以选择任意多个(也可以不选),在选出物品的体积的和恰好为 的前提下最大化选出物品的价值的
阅读全文
摘要:题目描述 You are given a tree of vertices. The vertices are numbered from to . You will need to assign a weight to each edge. Let the we
阅读全文
摘要:Problem StatementYou are given a sequence of non-negative integers and a positive integer . Find the bitwise $\mathrm{X
阅读全文
摘要:h3>Problem StatementJoisino is about to compete in the final round of a certain programming competition. In this contest, there are problems, numb
阅读全文