algorithm

dovelet - x 길이 구하기/x_length

블루건 2016. 7. 16. 21:54

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