题解 | 斗兽棋
斗兽棋
https://www.nowcoder.com/practice/0b5afb815f6848d9a7f9c1b0ce514b95
🤡
s1,s2=map(str,input().split())
flag=0
if s1=='elephant' and s2=='tiger':
flag=1
elif s2=='elephant' and s1=='tiger':
flag=-1
elif s1=='tiger' and s2=='cat':
flag=1
elif s2=='tiger' and s1=='cat':
flag=-1
elif s1=='cat' and s2=='mouse':
flag=1
elif s2=='cat' and s1=='mouse':
flag=-1
elif s1=='mouse' and s2=='elephant':
flag=1
elif s2=='mouse' and s1=='elephant':
flag=-1
if flag==1:
print('win')
elif flag==-1:
print('lose')
else:
print('tie')
