dovelet - x 길이 구하기/x_length
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream> #include <cmath> using namespace std; int main() { const float PI = 3.14159; int a, b; cin >> a >> b; cout << fixed; cout.precision(3); cout << sqrt(pow(a, 2) + pow(a, 2)) + sqrt(pow(b, 2) + pow(b, 2)) + a*PI + b*PI; return 0; } | cs |
'algorithm ' 카테고리의 다른 글
더블릿|dovelet - 대각선 교차점/coci_intersect (0) | 2016.07.18 |
---|---|
더블릿|dovelet - 선의 수 구하기/complete_graph (0) | 2016.07.16 |
dovelet - spot of light/spot (0) | 2016.07.15 |
dovelet - 내/외각의 합/angle (0) | 2016.07.14 |
dovelet - maxandmin/maxandmin (0) | 2016.07.14 |