题解 | 斗兽棋

斗兽棋

https://www.nowcoder.com/practice/0b5afb815f6848d9a7f9c1b0ce514b95

n,m=input().split()
if (n=='elephant'and m=='tiger') or (n=='tiger'and m=='cat') or (n=='cat'and m=='mouse') or(n=='mouse'and m=='elephant'):
    print('win')
elif (m=='elephant'and n=='tiger') or (m=='tiger'and n=='cat') or (m=='cat'and n=='mouse') or(m=='mouse'and n=='elephant'):
    print('lose')
else:
    print('tie') 

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务