Task: | Kertoma |
Sender: | removed82788 |
Submission time: | 2022-10-31 01:00:14 +0200 |
Language: | Python3 (CPython3) |
Status: | BUSTED |
Code
import math counts = [int(x) for x in input().split(" ")] def get_counts(num): nums = [0] * 10 for i in str(num): nums[int(i)] += 1 return nums for i in range(3000): my_counts = get_counts(math.factorial(i)) if counts == my_counts: print(i) break