#P183. 练30.1 鸡尾酒疗法
练30.1 鸡尾酒疗法
Description
Suppose the effectiveness rate of cocktail therapy is , and the effectiveness rate of a new therapy is . If is greater than , the new therapy is better; if is greater than , the new therapy is worse; otherwise, they are considered to have similar effectiveness.
Given groups of clinical control experiments, where the first group uses cocktail therapy and the other groups use various improved therapies, write a program to determine the effectiveness of each improved therapy.
Input Format
The first line contains an integer ();
The next lines each contain two integers: the first integer is the total number of clinical cases (not exceeding ), and the second integer is the number of effective cases.
Among these lines of data, the first line contains data for cocktail therapy, and the remaining lines contain data for various improved therapies.
Output Format
Output lines, each indicating the effectiveness of the corresponding improved therapy:
If the effect is better, output "better";
If the effect is worse, output "worse";
Otherwise, output "same".
Sample
5
125 99
112 89
145 99
99 97
123 98same
worse
better
same