1-5-15: Cocktail Therapy

Source: Internet
Author: User

Describe

Cocktail therapy, formerly referred to as "high-efficiency antiretroviral therapy" (HAART), was proposed by Chinese-American scientists David Ho in 1996 to treat AIDS through a combination of three or more three antiviral drugs. The application of this therapy can reduce the drug resistance of single drug, minimize the replication of the virus, so that the damaged body immune function, or even all recovery, thus delaying the progress of the disease, prolong the life of patients, improve the quality of life. On the basis of cocktail therapy, people put forward many kinds of improved therapies. To verify that these treatments are more effective than cocktail therapies, they can be performed in a clinical controlled manner. Assuming that the effective rate of cocktail therapy is x, the effective rate of the new therapy is Y, if the y-x is greater than 5%, then the effect is better, if X-y is greater than 5%, then the effect is worse, otherwise called effect is similar. The following is a clinical controlled trial of N Group, in which the first group uses cocktail therapy, and the other n-1 groups are different kinds of improved therapies. Please write the procedure to determine the effect of various improvement therapies.

Enter the first behavior integer n (1 < n <= 20);
The remaining n rows are two integers per line, the first integer being the total number of cases in the clinical trial (less than or equal to 10000), and the second effective number of cases.
This n row of data, the first act of cocktail therapy data, the rest of the behavior of various improved therapies data. The output has a n-1 line output, respectively, indicating the effect of the improved therapy:
If the effect is better, the output better; if the effect is worse, the output worse; otherwise the output same sample input

5125 99112 89145 9999 97123 98

Sample output

Sameworsebettersame
1#include <stdio.h>2 intMain ()3 {4     intn,i,a,b;5     Doublec,x;6scanf"%d",&n);7scanf"%d%d",&a,&b);8C= (Double) b/A;9      for(i=2; i<=n;i++)Ten     { Onescanf"%d%d",&a,&b); AX= (Double) b/A; -         if(x-c>0.05) printf ("better\n"); -         Else the             if(c-x>0.05) printf ("worse\n"); -             Else -printf"same\n"); -     } +     return 0; -}

1-5-15: Cocktail Therapy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.