백준 1002번 C99
프로그래밍/C,C++·2021. 6. 6.
백준 1002번 정답 더보기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 #include #include #include float Distance(int x1, int y1, int x2, int y2) { float d = sqrt((pow((x1 - x2), 2) + pow((y1 - y2), 2))); return d; } void D_comparison(int x1, int y1, int r1, int x2, int y2, int r2) { float d = Distance(x1, y1, x2, y2); if (((r1 + r2..