⌨️

[AtCoder]ABC-380|B - Hurdle Parsing

2024/11/26に公開

設問ページ

提出結果

def getString():
    return input()


def main():
    S = getString()

    sa = S.split("|")

    a = [len(s) for s in sa if s != ""]

    print(" ".join(map(str, a)))


if __name__ == "__main__":
    main()

Discussion