# Chaos Drone - Indicative time limit: 0.5 s (reference environment: [environment and measurements](../../../docs/评测环境与性能.md); for guidance only) - Actual time limit: 2 times the reference solution's baseline runtime on its slowest official test file in the target judging environment, rounded up in 0.5 s increments; if the judge only supports coarser increments, round up again to a supported value. - Memory limit: 128 MB ## Story Rahn is surrounded by enemy units, and Chaos Drones have arrived to help him escape. Each drone can provoke conflict between two units or cause internal confusion in one unit. The evacuation can begin once every enemy unit is occupied by one of these disruptions. Use as few drones as possible. ## Formal Problem Statement There are $n$ enemy units and $m$ allowed pairs. One action consumes one Chaos Drone and does one of the following: - Choose an allowed pair and occupy both units by provoking conflict between them. - Choose any one unit and occupy it by causing internal confusion. Find the minimum number of actions needed to occupy all $n$ units. Different actions may involve the same unit, although this is not required. Units have case-sensitive code names, which appear only in the list of allowed pairs. If the input contains only $d