⌨️

[AtCoder]ABC-211|A - Blood Pressure

2023/04/24に公開

設問ページ

提出結果

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


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

    c = (a + 2 * b) / 3

    print("%d" % c if c.is_integer() else c)


if __name__ == "__main__":
    main()

Discussion