这题要求高(注意1.用double类型2.不用pow函数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,sum=1,a=1; int n,i; sc…… 题解列表 2024年11月29日 0 点赞 0 评论 149 浏览 评分:0.0
直接乘,不用再倒数变幻,于是直接累加即可,1个循环 摘要:解题思路:1.由于直接乘,不用再倒数变幻,于是直接累加即可,1个循环。2.因为1,每次累乘后,无需更新,直接继续,累加即可。3.用pow不稳定?注意:这类题最后结果sum+1。参考代码:#includ…… 题解列表 2024年12月07日 0 点赞 0 评论 125 浏览 评分:0.0
2825: 计算多项式的值(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { double x; int n; scanf("%lf…… 题解列表 2023年02月28日 0 点赞 0 评论 246 浏览 评分:0.0
不知道为什么不能用pow函数算,奇怪 摘要:解题思路:注意事项:要自己定义循环来算,用pow函数就会报错参考代码:#include<stdio.h>#include<math.h>intmain(void){…… 题解列表 2025年01月23日 0 点赞 0 评论 192 浏览 评分:0.0
666666666666666666 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;double x,xn=1,sum=1;int main(){ scan…… 题解列表 2023年02月22日 0 点赞 0 评论 296 浏览 评分:7.3
计算多项式的值,使用pow()函数精度不符合要求 摘要:解题思路:注意事项:参考代码://本来想用Java来写,但是如果输入的x是小数,Java的精度会不太足,所以没通过,只能用C来写了//使用pow()函数精度不符合要求 double x ; …… 题解列表 2023年10月10日 0 点赞 0 评论 219 浏览 评分:8.0
2825: 计算多项式的值 摘要:``` #include using namespace std; int main(){ double n,x,sum=1,num; cin>>x>>n; num=x; for…… 题解列表 2023年11月21日 0 点赞 0 评论 151 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x,n,sum=1,a; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 165 浏览 评分:9.9
java没搞出来,找不出问题所在 摘要:参考代码:#include<iostream> using namespace std; int main() { float x; int n; cin >> x…… 题解列表 2024年01月13日 0 点赞 0 评论 163 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要: #include using namespace std; int main(){ int n; double x,b=1,sum=1; …… 题解列表 2023年11月20日 0 点赞 0 评论 103 浏览 评分:9.9