当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3724:Find the parameter

题目描述

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 aiai+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

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-3724

最后修改于 2020-10-29T07:09:11+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
10000 65536