⌨️

[AtCoder]ABC-378|A - Pairing

2024/11/19に公開

設問ページ

提出結果

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


def main():
    A = getIntList()

    c = 0
    for x in set(A):
        c += A.count(x) // 2
    print(c)


if __name__ == "__main__":
    main()

Discussion