-->
当前位置:首页 > 题库

PROGRAMMING:Roll the dice

Luz5年前 (2021-05-10)题库369
In front of Xiao Ming and Xiao Hong are two dice with six numbers written on them.
Xiao Ming and Xiao Hong roll the dice in turn. Xiao Ming chooses the first dice, while Xiao Hong chooses the second. If the one who rolls more, he can win.
Now, given the six numbers on these two dice, you need to answer whether Xiao Ming has a greater chance of winning or Xiao Hong has a greater chance of winning( Please note that the chances of winning are the same.)
If Xiao Ming is more likely to win, output "win", if Xiao Hong is more likely to win, output "lose", if the same output "same";
###Input format:
Input t in the first line to indicate that there are t groups of data. Each group of data has 2 lines in total. Each line has 6 positive integers (each number is less than 100). The first line is the 6 numbers on the first die, and the second line is the 6 numbers on the second die.
###Output format:
If Xiao Ming is more likely to win, output "win", if Xiao Hong is more likely to win, output "lose", if the same output "same";
###Input example:
Here is a set of inputs. For example:
```in
three
1 2 3 4 5 6
1 2 3 4 5 6
2 2 3 3 4 4
1 1 2 2 3 3
1 1 1 1 1 1
6 6 6 6 6 6
```
###Output example:
The corresponding output is given here. For example:
```out
same
win
lose
```







answer:If there is no answer, please comment