#T611. 鸡尾酒疗法

鸡尾酒疗法

Description

Cocktail therapy, also known as Highly Active Antiretroviral Therapy (HAART), serves as the baseline treatment. Many improved therapies have been proposed based on cocktail therapy. To verify whether these new treatments are more effective than cocktail therapy, clinical controlled trials can be conducted. Suppose the efficacy rate of cocktail therapy is x, and the efficacy rate of a new therapy is y. If y - x > 5%, the new therapy is considered better; if x - y > 5%, it is worse; otherwise, the effect is deemed similar. Below are n sets of clinical trial data, where the first set represents cocktail therapy, and the remaining n-1 sets represent various improved therapies. Write a program to evaluate the effectiveness of each improved therapy.

Input Format

The first line is an integer n (1 < n ≤ 20); the following n lines each contain two integers: the first integer is the total number of clinical trial cases (≤ 10,000), and the second integer is the number of effective cases. 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 effectiveness of the corresponding improved therapy: if the effect is better, output "better"; if worse, output "worse"; otherwise, output "same".

```input1 5 125 99 112 89 145 99 99 97 123 98
```output1
same
worse
better
same


译文

CodesOnline