← 返回 meta 的题目列表Maximum Subset (Print the subset) - AI Coding Round
类型:online_judge
Given a set/array A (exact meaning depends on the prompt), find a largest subset S that satisfies certain constraints, and output the subset itself (e.g., print the elements or indices), not just its size.
Input: A plus any extra fields needed to define the constraint
Output: one maximum-size valid subset S
Note: On the platform this often has multiple test cases; backtracking with pruning may pass smaller ones, while larger cases require stronger optimization or a different approach.
The original post did not include the constraint definition, I/O format, or limits, so this cannot be reconstructed into a fully reproducible coding question.