⌨️
[AtCoder]ABC-380|B - Hurdle Parsing
設問ページ
提出結果
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