1
2
3
4
5
6
7
|
n=int(input())
ans=0
for i in range(n):
s=input()
if '+' in s : ans+=1
elif '-' in s : ans-=1
print(ans)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 236A. Boy or Girl (0) | 2022.04.28 |
---|---|
codeforces 281A. Word Capitalization (0) | 2022.04.28 |
codeforce 112A. Petya and Strings (0) | 2022.04.28 |
codeforce 71A. Way Too Long Words (0) | 2022.04.28 |
Codeforces A. Watermelon (0) | 2022.04.28 |
댓글