시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 42 5 4 19.048%

문제

2147483647보다 작거나 같은 양의 정수 t, a, b가 주어졌을 때, (ta - 1)/(tb - 1)이 100자리보다 작은 정수인지 아닌지 판별하는 프로그램을 작성하시오.

입력

입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 한 줄로 이루어져 있고, t, a, b가 주어진다.

출력

각 테스트 케이스 마다, 입력으로 주어진 t, a, b를 이용하여 문제의 식을 계산한 결과가 100자리보다 작은 정수라면 그 값을 출력하고, 아닌 경우에는 "is not an integer with less than 100 digits."을 출력한다.

예제 입력 1

2 9 3
2 3 2
21 42 7
123 911 1

예제 출력 1

(2^9-1)/(2^3-1) 73
(2^3-1)/(2^2-1) is not an integer with less than 100 digits.
(21^42-1)/(21^7-1) 18952884496956715554550978627384117011154680106
(123^911-1)/(123^1-1) is not an integer with less than 100 digits.
W3sicHJvYmxlbV9pZCI6IjQzNzkiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWIwOThcdWIyMDRcdWFlMzAiLCJkZXNjcmlwdGlvbiI6IjxwPjIxNDc0ODM2NDdcdWJjZjRcdWIyZTQgXHVjNzkxXHVhYzcwXHViMDk4IFx1YWMxOVx1Yzc0MCBcdWM1OTFcdWM3NTggXHVjODE1XHVjMjE4IHQsIGEsIGJcdWFjMDAgXHVjOGZjXHVjNWI0XHVjODRjXHVjNzQ0IFx1YjU0YywgKHQ8c3VwPmE8XC9zdXA+IC0gMSlcLyh0PHN1cD5iPFwvc3VwPiAtIDEpXHVjNzc0IDEwMFx1Yzc5MFx1YjlhY1x1YmNmNFx1YjJlNCBcdWM3OTFcdWM3NDAgXHVjODE1XHVjMjE4XHVjNzc4XHVjOWMwIFx1YzU0NFx1YjJjY1x1YzljMCZuYnNwO1x1ZDMxMFx1YmNjNFx1ZDU1OFx1YjI5NCBcdWQ1MDRcdWI4NWNcdWFkZjhcdWI3YThcdWM3NDQgXHVjNzk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