Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def F(n):
- s = str(n)
- a = int(s[0])
- b = int(s[1])
- c = int(s[2])
- e = a + b
- q = b + c
- if e < q:
- e, q = q, e
- return int(str(e) + str(q))
- for i in range(100, 1_000):
- if F(i) == 1711:
- print(i)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement