Editorial for CPC '21 Contest 1 P3 - AQT and Circles


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: kevinyang

Subtask 1

For this subtask, it can be observed that the circles C2 and C1 will coincide, meaning that the set of possible positions for circle C3 is equal to the set of its valid positions. This results in the answer always being 1.

Subtask 2

For this subtask, the only case for valid positions that needs to be considered is the case where circle C3 is located inside of circle C1 since the probability that circle C3 lies outside of circle C1 is negligible. To calculate the probability, you need to calculate the ratio between the area of the set of valid positions and the area of the set of possible positions.
The area of the set of valid positions is π(R1R3)2 and the area of the set of possible positions is π(R2R3)2. It can also be observed that π can be cancelled out in the ratio.

Subtask 3

For the full solution, the area of the set of possible positions stays the same but the area of the set of valid positions is not necessarily the same. There are 3 cases to consider:

  • C3 is located completely inside of circle C1
    • Condition: R3<R1
    • Area: π(R1R3)2
  • C1 is located completely inside of circle C3
    • Condition: R3>R1
    • Area: π(min(R3R1,R2R3))2
  • C3 is located completely outside of circle C1
    • Condition: R2R1>2R3
    • Area: π((R2R3)2(R1+R3)2)

Comments

There are no comments at the moment.