Pro.ID21333 TitlePractice Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21333 AC1 Submit1 Ratio100.00% 时间&空间限制描述How much does winning ACM depend on practice? 输入The input contains several test cases followed by a line contatining 0. Each test case begins with 1 < k ≤ 100, the number of observations that follow. Each observation consists of integers 0 ≤ n ≤ 100 and 0 ≤ w ≤ 1. The input will contain at least two distinct values of n and of w. 输出Description How much does winning ACM depend on practice? Input The input contains several test cases followed by a line contatining 0. Each test case begins with 1 < k ≤ 100, the number of observations that follow. Each observation consists of integers 0 ≤ n ≤ 100 and 0 ≤ w ≤ 1. The input will contain at least two distinct values of n and of w. Output For each test case, output a single line containing a and b, rounded to four digits to the right of the decimal. Sample Input 20 Sample Output -3.1748 1.5874 Source 样例输入20 样例输出-3.1748 1.5874 作者 |