⌨️
[AtCoder]ABC-378|A - Pairing
設問ページ
提出結果
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