Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=7663
- for x in range(100, 1000):
- s = str(x)
- a = int(s[0]) + int(s[1])
- b = int(s[1]) + int(s[2])
- a, b = max(a, b), min(a, b)
- if str(a) + str(b) == '1412':
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement