#Z14114. 鸡尾酒疗法
鸡尾酒疗法
Description
Cocktail therapy refers to "Highly Active Antiretroviral Therapy" (HAART). Many improved therapies have been proposed based on cocktail therapy. To verify whether these treatment methods are more effective than cocktail therapy, clinical controlled trials can be conducted.
Assume the efficacy rate of cocktail therapy is x, and the efficacy rate of a new therapy is y. If y - x > 5%, the effect is considered better; if x - y > 5%, the effect is worse; otherwise, the effect is considered similar.
Below are n sets of clinical controlled trials, where the first set uses cocktail therapy, and the remaining n-1 sets use various improved therapies. Write a program to determine the effect of each improved therapy.
Input Format
The first line is an integer n (1 < n ≤ 20);
The remaining n lines each contain two integers: the first integer is the total number of clinical cases (≤ 10000), and the second integer is the number of cases with effective treatment. Among these n lines, the first line represents the data for cocktail therapy, and the remaining lines represent data for various improved therapies.
Output Format
Output n-1 lines, each indicating the effect of the corresponding improved therapy:
- If the effect is better, output "better";
- If the effect is worse, output "worse";
- Otherwise, output "same".
5
125 99
112 89
145 99
99 97
123 98
same
worse
better
same