302148: CF409A. The Great Game

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

The Great Game

题意翻译

### 题目背景 愚人节题目,两支队伍玩石头剪刀布,问谁赢了。 其中: 8< 代表剪刀; () 代表石头; [] 代表布。 ### 输入格式 两行,第一行给的是TEAM 1的出招顺序,第二行给的是TEAM 2的。 ### 输出格式 一行,若TEAM 1赢,输出"TEAM 1 WINS";若TEAM 2赢,输出"TEAM 2 WINS";平局输出"TIE"。 贡献者:PC_DOS

题目描述

Two teams meet in The Game World Championship. Some scientists consider this game to be the most intellectually challenging game in the world. You are given two strings describing the teams' actions in the final battle. Figure out who became the champion.

输入输出格式

输入格式


The input contains two strings of equal length (between 2 and 20 characters, inclusive). Each line describes the actions of one team.

输出格式


Output "TEAM 1 WINS" if the first team won, "TEAM 2 WINS" if the second team won, and "TIE" if there was a tie.

输入输出样例

输入样例 #1

[]()[]8<
8<[]()8<

输出样例 #1

TEAM 2 WINS

输入样例 #2

8<8<()
[]8<[]

输出样例 #2

TIE

Input

题意翻译

### 题目背景 愚人节题目,两支队伍玩石头剪刀布,问谁赢了。 其中: 8< 代表剪刀; () 代表石头; [] 代表布。 ### 输入格式 两行,第一行给的是TEAM 1的出招顺序,第二行给的是TEAM 2的。 ### 输出格式 一行,若TEAM 1赢,输出"TEAM 1 WINS";若TEAM 2赢,输出"TEAM 2 WINS";平局输出"TIE"。 贡献者:PC_DOS

加入题单

算法标签: