2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n, b, c = 0; cin>>n; for(i…… 题解列表 2023年11月05日 0 点赞 0 评论 440 浏览 评分:0.0
求整数的和与均值 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a; double sum=0; for(int i=…… 题解列表 2023年09月06日 0 点赞 1 评论 360 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for…… 题解列表 2024年12月22日 1 点赞 0 评论 553 浏览 评分:0.0
求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,a; cin>>n; …… 题解列表 2023年07月01日 0 点赞 0 评论 245 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n, i, j; double* a,aver,sum=0.0; s…… 题解列表 2023年06月24日 0 点赞 0 评论 318 浏览 评分:0.0
2025/7/25刷题记录 摘要:解题思路:两个整数相除得浮点数结果要将其中一个数强转为浮点要不然会精度丢失注意事项:参考代码:#include<stdio.h>int main(){ int a…… 题解列表 2025年07月25日 0 点赞 0 评论 342 浏览 评分:0.0
循环控制--4.求整数的和与均值 摘要:解题思路: 输入整数较多,如题目中:1=<n<=1000,不要用数组,直接一个一个输入,+sum就好了;注意事项: 提高结果的精确度:avg=aum/(n*1.0),而不是avg=sum/n*1.0 …… 题解列表 2023年03月24日 0 点赞 0 评论 422 浏览 评分:0.0
<循环>求整数的和与均值(C语言) 摘要:#include<stdio.h> int main() { int n,x,sum=0; double ave; scanf("%d", &n); for (int i = 0;…… 题解列表 2023年02月10日 0 点赞 0 评论 378 浏览 评分:0.0
刷题记录2025/12/3 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i,sum=0; double n; scanf("%lf\n&q…… 题解列表 2025年12月03日 0 点赞 0 评论 224 浏览 评分:0.0