시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 828 387 328 55.405%

문제

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

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

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

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

입력

입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트는 한 줄로 이루어져 있고, N, B, M이 주어진다. M은 항상 N보다 크다. N과 M은 항상 백만보다 작거나 같은 수이고, 음수 또는 0이 아니다. B는 50보다 작거나 같으며, 양수이다. 모든 수는 소수점 둘째자리까지 주어진다.

출력

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

예제 입력 1

200.00 6.5 300
500 4 1000.00

예제 출력 1

7
18
W3sicHJvYmxlbV9pZCI6IjQ5OTgiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM4MDBcdWFlMDgiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YzBjMVx1YWRmY1x1Yzc3NFx1YjI5NCBcdWM3NDBcdWQ1ODlcdWM1ZDAgXHVhYzAwXHVjMTFjIFx1ZDFiNVx1YzdhNVx1Yzc0NCBcdWI5Y2NcdWI0ZTRcdWFjZTAgTlx1YzZkMFx1Yzc0NCBcdWM4MDBcdWFlMDhcdWQ1ODhcdWIyZTQuIFx1YzBjMVx1YWRmY1x1Yzc3NFx1YjI5NCBcdWM3NzQgXHVkMWI1XHVjN2E1XHVjNWQwIFx1Yzc4NVx1YWUwOFx1Yzc3NFx1YjA5OCBcdWNkOWNcdWFlMDhcdWM3NDQgXHVkNTU4XHVjOWMwIFx1YzU0YVx1YzU1OFx1YjJlNC48XC9wPlxyXG5cclxuPHA+XHVjNzQwXHVkNTg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