← 返回 google 的题目列表Activate Features with Dependency Prerequisites (Simulation)
类型:online_judge
Problem (Incomplete; abstracted from the description)
There are n features in a system. Features have dependencies: to activate a feature, all of its prerequisite features must be activated first.
Given:
n features (IDs or names)
a set of dependency relations (e.g., a directed edge A -> B means A must be active before B can be activated)
a sequence of operations/requests (e.g., "try to activate feature X", "query which features are active/available")
Simulate the system and output whatever the original statement asks for (e.g., whether each activation succeeds, what additional features become activated, or the final set of active features).
Key rules (not specified)
AND vs OR prerequisites
whether activating a feature auto-activates its prerequisites
whether dependency cycles can exist and how to handle them
exact I/O format and constraints are unknown
Example
Not provided.
Example
Input
(题面缺失,无法生成)
Output
(题面缺失,无法生成)