⌨️
[AtCoder]ABC-102|A - Multiple of 2 and N
設問ページ
提出結果
def getInt():
return int(input())
def main():
n = getInt()
print(n if n % 2 == 0 else n * 2)
if __name__ == "__main__":
main()
def getInt():
return int(input())
def main():
n = getInt()
print(n if n % 2 == 0 else n * 2)
if __name__ == "__main__":
main()
Discussion