⌨️

[AtCoder]ABC-324|A - Same

2023/11/01に公開

設問ページ

提出結果

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


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


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

    print('Yes' if len(set(a)) == 1 else 'No')


if __name__ == "__main__":
    main()

Discussion