ChrisVilches / Algorithms

Solutions for competitive programming problems in various online judges such as Kattis, SPOJ, URI Online Judge, etc.
5 stars 0 forks source link

Cornering at poles, circles must have same radius #16

Closed ChrisVilches closed 11 months ago

ChrisVilches commented 2 years ago

Some methods only work if the circles have the same radius. Make it more clear, either by changing the method name or requiring the circles to have Circle<100> so that the same radius is required by the compiler.

ChrisVilches commented 11 months ago

Fixed using:

struct Circle {
  Point center;
  const double radius = 100;