Created
June 23, 2018 14:14
-
-
Save showyou/dfa9b34b1deca3f16f32351a31086501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S = input() | |
def is_plus(a): | |
if a == '+': | |
return 1 | |
else: | |
return -1 | |
ans = 0 | |
for i in range(4): | |
ans += is_plus(S[i]) | |
print(ans) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment