⌨️

[AtCoder]ABC-198|B - Palindrome with leading zeros

2023/04/11に公開

設問ページ

提出結果

def getInt():
    return int(input())


def main():
    n = getInt()

    m = str(int(str(n)[::-1]))

    print('Yes' if m == m[::-1] else 'No')


if __name__ == "__main__":
    main()

Discussion