⌨️

[AtCoder]ABC-102|A - Multiple of 2 and N

2023/01/22に公開

設問ページ

提出結果

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


def main():
    n = getInt()

    print(n if n % 2 == 0 else n * 2)


if __name__ == "__main__":
    main()

Discussion