문제 : https://www.acmicpc.net/problem/16486


[알고리즘풀이]

단순 구현 문제입니다.

#include<iostream>

using namespace std;

#define pi 3.141592;

int main(void) {
	ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	
	int a, b;
	cin >> a >> b;

	double ans = 2 * a + 2 * b * pi;
	cout.precision(100);
	cout << ans;
}

 

'Problem Solving > BOJ' 카테고리의 다른 글

[BOJ] 2446 - '별 찍기 - 9'  (0) 2019.09.29
[BOJ] 15781 - 헬멧과 조끼  (0) 2019.09.29
[BOJ] 16673 - 고려대학교에는 공식 와인이 있다  (0) 2019.09.29
[BOJ] 3896 - Prime Gap  (0) 2019.09.29
[BOJ] 3474 - Factorial  (0) 2019.09.29

+ Recent posts