← Back to List

31244번: СИМЕТРИЧНИ ЧИСЛА ↗

Solutions

Python 3
148 B | 148 chars
a, b, c = map(int, input().split())

if a == c:
    print(f"{a}{b}{c}")
elif b == c:
    print(f"{a}{b}{b}{a}")
else:
    print(f"{a}{b}{c}{b}{a}")