⌨️

[AtCoder]ABC-101|A - Eating Symbols Easy

2023/01/22に公開

設問ページ

提出結果

def getString():
    return input()


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

    c = sum([1 if t == '+' else -1 for t in s])

    print(c)


if __name__ == "__main__":
    main()

Discussion