⌨️

[AtCoder]ABC-159|A - The Number of Even Pairs

2023/03/07に公開

設問ページ

提出結果

import math


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


def main():
    n, m = getIntMap()

    print(math.comb(n, 2) + math.comb(m, 2))


if __name__ == "__main__":
    main()

Discussion