Last active
July 4, 2017 16:05
-
-
Save IKKO-Ohta/a002d1b5d50c7b0414afb8dd56b76e98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N = int(input()) | |
gold = sum([i*j for i in range(1,10) for j in range(1,10)]) | |
prod = N-gold | |
res = [] | |
for i in range(1,10): | |
if prod % i == 0: | |
factor = (i,prod//i) | |
if factor[0]<=9 and factor[1]<=9: res.append(factor) | |
print(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment