You are viewing a single comment's thread. Return to all comments →
dic = {3: 1301,4: 19316,5: 443839,6: 548834} print(dic[int(input().strip())])
O(1) solution Lol :p
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #30: Digit Nth powers
You are viewing a single comment's thread. Return to all comments →
O(1) solution Lol :p