add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
20
votes.py
Normal file
20
votes.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
a = 0
|
||||
b = 0
|
||||
|
||||
n = input("")
|
||||
|
||||
votes = input("")
|
||||
|
||||
for vote in votes:
|
||||
if vote == "A":
|
||||
a += 1
|
||||
elif vote == "B":
|
||||
b += 1
|
||||
|
||||
|
||||
if a > b:
|
||||
print("A")
|
||||
elif a < b:
|
||||
print("B")
|
||||
else:
|
||||
print("Tie")
|
Loading…
Add table
Add a link
Reference in a new issue