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

建议使用的浏览器:

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

4851:Wow! Such Precision!

Special Judge 特殊评判
题目描述
Professor Doge is now working on a project using polynomial for some mathematical calculations. In his project, he wants to approximate the exponential function ex with a polynomial whose degree does not exceed n. As one of professor’s assistants, you are asked to find a polynomial f (x) with degree n that minimizes

输入解释
There are several test cases, please process till EOF.
Each test case consists of only one integer denoting the degree n of the polynomial (0 ≤ n ≤ 10).
输出解释
For each test case, print n + 1 lines.
for the i-th line, print one floating number ai denoting the coefficient in the term xi, i = 0, 1, . . . , n.
It is guaranteed that the answer is always unique. Any answer within an absolute error less than or equal to 10-50 would be accepted.
输入样例
0
1
输出样例
1.7182818284590452353602874713526624977572470936999595749
0.8731273138361809414411498854106499910289883747998382998
1.6903090292457285878382751718840250134565174378002425501
来自杭电HDUOJ的附加信息
Recommend liuyiding

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-4851

最后修改于 2020-10-25T23:17:26+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 32768/32768K(Java/Others)