⌨️[AtCoder]ABC-159|A - The Number of Even Pairs2023/03/07に公開・約300字ツイートPythonAtCoder#abctech 設問ページ 🔗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ログインするとコメントできますLogin
Discussion