⌨️

[AtCoder]ABC-044|B - 美しい文字列

2022/12/20に公開

設問ページ

提出結果

def getString():
    return input()


def main():
    buf = list(getString())

    d = dict()
    f = True

    for c in buf:
        d[c] = d[c] + 1 if c in d else 1

    for v in d.values():
        if v % 2 == 1:
            f = False
            break

    print('Yes' if f == True else 'No')


if __name__ == "__main__":
    main()

Discussion