#include #include using namespace std; int main() { int x1, y1; int x2, y2; int x3, y3; cin >> x1 >> y1; cin >> x2 >> y2; cin >> x3 >> y3; double d1 = sqrt(pow(y3 - y1, 2) + pow(x3 - x2, 2)); double d2 = sqrt(pow(y3 - y2, 2) + pow(x3 - x1, 2)); double sd1 = sqrt(pow(y2 - y1, 2) + pow(x2 - x3, 2)); double sd2 = sqrt(pow(y2 - y3, 2) + pow(x2 - x1, 2)); double td1 = sqrt(pow(y2 - y1, 2) + pow(x3 - x1, 2)); double td2 = sqrt(pow(y1 - y3, 2) + pow(x2 - x1, 2)); double m1 = min(d1, d2); double m2 = min(sd1, sd2); double m3 = min(td1, td2); cout << m1 << "\n"; cout << m2 << "\n"; cout << m3 << "\n"; cout << "\n"; cout << d1 << " " << d2 << '\n'; cout << sd1 << " " << sd2 << '\n' ; cout << td1 << " " << td2 << '\n'; cout << min(min(m1, m2), m3) << "\n"; return 0; }