⌨️
[AtCoder]ABC-159|A - The Number of Even Pairs
設問ページ
提出結果
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