⌨️

[AtCoder]ABC-201|A - Tiny Arithmetic Sequence

2023/04/14に公開

設問ページ

提出結果

def getIntList():
    return list(map(int, input().split()))


def main():
    l = getIntList()
    a, b, c = sorted(l)

    print('Yes' if b * 2 == a + c else 'No')


if __name__ == "__main__":
    main()

Discussion