시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 558 255 229 51.461%

문제

상근이는 은행에 가서 통장을 만들고 N원을 저금했다. 상근이는 이 통장에 입금이나 출금을 하지 않았다.

은행은 통장을 만든지 1년이 지날때마다 상근이의 통장에 저금되어 있는 돈의 B%만큼을 이자로 적립해준다.

상근이는 몇 년이 지나면 통장에 저금되어 있는 돈이 M원을 넘을지 궁금해졌다. 

N,M,B가 주어졌을 때, 몇 년이 지나야 하는지 구하는 프로그램을 작성하시오.

입력

입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트는 한 줄로 이루어져 있고, N, B, M이 주어진다. M은 항상 N보다 크다. N과 M은 항상 백만보다 작거나 같은 수이고, 음수가 아니다. B는 50보다 작거나 같으며, 양수이다.

출력

각 테스트 케이스에 대해서, M원을 넘게 만드려면 몇 년이 걸리는지 출력한다.

예제 입력 1

200.00 6.5 300
500 4 1000.00

예제 출력 1

7
18
W3sicHJvYmxlbV9pZCI6IjQ5OTgiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM4MDBcdWFlMDgiLCJkZXNjcmlwdGlvbiI6IjxwPlxyXG5cdFx1YzBjMVx1YWRmY1x1Yzc3NFx1YjI5NCBcdWM3NDBcdWQ1ODlcdWM1ZDAgXHVhYzAwXHVjMTFjIFx1ZDFiNVx1YzdhNVx1Yzc0NCBcdWI5Y2NcdWI0ZTRcdWFjZTAgTlx1YzZkMFx1Yzc0NCBcdWM4MDBcdWFlMDhcdWQ1ODhcdWIyZTQuIFx1YzBjMVx1YWRmY1x1Yzc3NFx1YjI5NCBcdWM3NzQgXHVkMWI1XHVjN2E1XHVjNWQwIFx1Yzc4NVx1YWUwOFx1Yzc3NFx1YjA5OCBcdWNkOWNcdWFlMDhcdWM3NDQgXHVkNTU4XHVjOWMwIFx1YzU0YVx1YzU1OFx1YjJlNC48XC9wPlxyXG5cclxuPHA+XHJcblx0XHVjNzQwXHVkNTg5XHVjNzQwIFx1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