python-algorithm
[백준] 2975
무적김두칠
2021. 3. 11. 15:44
1
2
3
4
5
6
7
8
|
while 1:
a,b,c=input().split()
a,c=int(a),int(c)
if a == 0 and c == 0: break
s=a-c
if b!='W': s=a+c
if s<-200 :print("Not allowed")
else: print(s)
|
cs |
반응형