You are viewing a single comment's thread. Return to all comments →
O(1) solution
r = {4: 12,5: 52,6: 162,7:0,8:13458,9:45228} print(r[int(input().strip())])
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #32: Pandigital products
You are viewing a single comment's thread. Return to all comments →
O(1) solution