링크 : 5290. [파이썬 S/W 문제해결 최적화] 7일차 - 확률
for tc in range(1, int(input()) + 1):
n = int(input())
permResult = 1
piResult = 10 ** n
for i in range(n):
permResult *= 10 - i
print(f'#{tc}', f'%.5f' % round(permResult / piResult, 5))
겹치는 숫자 없이 만든 n자릿수 / 중복허용하고 만들 수 있는 n자릿수
이다.10 * 9 * 8 / 10 * 10 * 10
이다.