BOJ
[BOJ][Python] 백준 4696번 - St. Ives
송댕
2022. 8. 2. 01:59
728x90
문제 링크: https://www.acmicpc.net/problem/4696
4696번: St. Ives
Input consists of multiple data sets. Each data set consists of a line with a single floating point number number representing the numbers of wives, sacks per wife, cats per sack, and kittens per cat that Robert encountered that year. End of input is indic
www.acmicpc.net
문제 풀이
사칙연산
$1+n+n^{2}+n^{3}+n^{4}$ 를 구한 후 소숫점 셋째 자리에서 반올림 한다.
코드
728x90