백준 #2022 - 사다리 (python3) import math x,y,c = map(float, input().split(' ')) d = 1.0 high = min(x,y) low = 0.0 while (low+0.001) (f*e)/(f+e): high = d elif c < (f*e)/(f+e): low = d print('%.03f'%d) Programming/Algorithm 2019.11.17