Completed winningScore.py
This commit is contained in:
commit
e4aaa2de2e
16
winningScore.py
Normal file
16
winningScore.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# DMOJ ccc19j1 (Accepted)
|
||||||
|
|
||||||
|
apple3s = int(input())
|
||||||
|
apple2s = int(input())
|
||||||
|
appleFree = int(input())
|
||||||
|
banana3s = int(input())
|
||||||
|
banana2s = int(input())
|
||||||
|
bananaFree = int(input())
|
||||||
|
appleScore = (apple3s * 3) + (apple2s * 2) + appleFree
|
||||||
|
bananaScore = (banana3s * 3) + (banana2s * 2) + bananaFree
|
||||||
|
if appleScore > bananaScore:
|
||||||
|
print("A")
|
||||||
|
elif bananaScore > appleScore:
|
||||||
|
print("B")
|
||||||
|
elif appleScore == bananaScore:
|
||||||
|
print("T")
|
||||||
Loading…
x
Reference in New Issue
Block a user