Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #5857 https://kpolyakov.spb.ru/school/ege/gen.php?action=viewAllEgeNo&egeId=25&cat157=on&cat158=on&cat159=on&cat172=on
- for d in range(4):
- r = 7
- if d == 3:
- r = 4
- for x in range(1, r):
- for y in range(10**d):
- Y = str(y)
- if ('7' in Y) or ('8' in Y) or ('9' in Y):
- continue
- Y = '0' * (d - len(Y)) + Y
- if d == 0:
- Y = ''
- #?213 * 5664
- n = int(str(x) + '213' + Y + '5664', 7)
- if n % 333 == 0:
- print(n, n // 333)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement