본문 바로가기
python-algorithm

[백준] 17009

by 무적김두칠 2021. 3. 8.

1
2
3
4
5
6
7
8
9
10
11
scorea,scoreb=0,0
scorea+=int(input())*3
scorea+=int(input())*2
scorea+=int(input())*1
scoreb+=int(input())*3
scoreb+=int(input())*2
scoreb+=int(input())*1
 
if scorea>scoreb:print("A")
elif scorea==scoreb:print("T")
else:print("B")
cs

농구 점수 계산이네요

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 17874  (0) 2021.03.08
[백준] 17863  (0) 2021.03.08
[백준] 16785  (0) 2021.03.08
[백준] 16727  (0) 2021.03.08
[백준] 16693  (0) 2021.03.08

댓글