⌨️

[AtCoder]ABC-271|A - 484558

2023/07/25に公開

設問ページ

提出結果

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


def main():
    n = getInt()
    h = ['0', '1', '2', '3', '4', '5', '6',
         '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']

    print(h[n // 16] + h[n % 16])


if __name__ == "__main__":
    main()

Discussion