eolymp
Məsələlər

Две окружности

Two circles

Zaman məhdudiyyəti 1 saniyə
Yaddaşı istafadə məhdudiyyəti 64 MiB

How many points in common two given circles have?

Giriş verilənləri

Six real numbers x_1, y_1, r_1, x_2, y_2, r_2, where x_1, y_1, x_2, y_2 are the coordinates of the centers of the circles, r_1, r_2 are its radius.

Çıxış verilənləri

The number of common points for two circles: 0, 1 or 2. Print -1 if circles have a lot of common points.

Nümunə

Giriş verilənləri #1
0 0 5 5 0 1
Çıxış verilənləri #1
2