⌨️

[AtCoder]ABC-124|A - Buttons

2023/02/11に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def main():
    a, b = getIntMap()

    print(max([a + b, a * 2 -1, b * 2 - 1]))


if __name__ == "__main__":
    main()

Discussion