⌨️

[AtCoder]ABC-380|A - 123233

2024/11/26に公開

設問ページ

提出結果

def getString():
    return input()


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

    r = True
    for i in [1, 2, 3]:
        if N.count(str(i)) != i:
            r = False
            break
    print("Yes" if r else "No")


if __name__ == "__main__":
    main()

Discussion