当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
Panda is preparing for the mid-term examination by reading his notebook. However, some parts of his notebook have been ruined and some data are lost. For example, when he encounter a list of functions, he find out that all parameters are lost. The functions are similiar and can be written as
y = exp(a0x) + exp(a1x) + ... + exp(a9x).
Although all the ai are lost, the coordinates of some points on the curve of the function are known. Can you find back all the ai with these coordinates? Notice that all the ai are positive integers no more than 10 and ai ≤ ai+1 (i=0,1,...,8). It is guaranteed to been only one correct answer.
The first line of input is N, the number of the coordinates.
Each of the next N lines contains a pair of coordinates xi, yi separated by one space.
1 ≤ N ≤ 20
0 ≤ xi ≤ 5
The output contains 10 lines, each contains one ai in ascending order.
20 0.200 12.214 0.400 14.918 0.600 18.221 0.800 22.255 1.000 27.183 1.200 33.201 1.400 40.552 1.600 49.530 1.800 60.496 2.000 73.891 2.200 90.250 2.400 110.232 2.600 134.637 2.800 164.446 3.000 200.855 3.200 245.325 3.400 299.641 3.600 365.982 3.800 447.012 4.000 545.982
1 1 1 1 1 1 1 1 1 1
时间上限 | 内存上限 |
10000 | 65536 |