TOPIC

HELP pl!!!

Rafael Santos asked 2 years ago

n = int(input(""))

for i in range(1,n+1):

s,r = raw_input("").split()

if s==r:
    print("De novo!")

elif s == 'tesoura' and r == 'papel':
    print("Caso %d#: Bazinga!" %i)

elif s == 'papel' and r == 'tesoura':
    print("Caso %d#: Raj Trapaceou!" %i)        

if s == 'papel' and r == 'pedra':
    print("Caso %d#: Bazinga!" %i)

elif s == 'pedra' and r =='papel':      
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'pedra' and r == 'lagarto':
    print("Caso %d#: Bazinga!" %i)

elif s == 'lagarto' and r =='pedra':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'lagarto' and r == 'Spock':
    print("Caso %d#: Bazinga!" %i)

elif s == 'Spock' and r =='lagarto':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'Spock' and r == 'tesoura':
    print("Caso %d#: Bazinga!" %i)

elif s == 'tesoura' and r =='Spock':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'tesoura' and r == 'lagarto':
    print("Caso %d#: Bazinga!" %i)

elif s == 'lagarto' and r =='tesoura':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'lagarto' and r == 'papel':
    print("Caso %d#: Bazinga!" %i)

elif s == 'papel' and r =='lagarto':
    print("Caso %d#: Raj Trapaceou!" %i)        

if s == 'papel' and r == 'Spock':
    print("Caso %d#: Bazinga!" %i)

elif s == 'Spock' and r =='papel':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'Spock' and r == 'pedra':
    print("Caso %d#: Bazinga!" %i)

elif s == 'pedra' and r =='Spock':
    print("Caso %d#: Raj Trapaceou!" %i)

if s == 'pedra' and r == 'tesoura':
    print("Caso %d#: Bazinga!" %i)

elif s == 'tesoura' and r =='pedra':
    print("Caso %d#: Raj Trapaceou!" %i)

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.