⌨️

[AtCoder]ABC-240|B - Count Distinct Integers

2023/06/07に公開

設問ページ

提出結果

def getInt():
    return int(input())

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

def main():
    n = getInt()
    a = getIntList()

    print(len(set(a)))

if __name__ == "__main__":
    main()

Discussion