非正常思路(java) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年11月21日 0 点赞 0 评论 106 浏览 评分:0.0
求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,a; cin>>n; …… 题解列表 2023年07月01日 0 点赞 0 评论 88 浏览 评分: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 评论 146 浏览 评分:0.0
2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double sum=0.0; scanf("%d",&n); int a[n]; for(int…… 题解列表 2023年11月24日 0 点赞 0 评论 103 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:可能存在一行输入多个数的情况参考代码:list1 = list(map(int,input().split()))n=list1[0]list1.pop(0)while len(l…… 题解列表 2024年02月28日 0 点赞 0 评论 173 浏览 评分: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 评论 135 浏览 评分:0.0
求整数的和与均值(Python) 摘要:解题思路: 这个就是有一种情况是 输入没有按照一行一个数比如说按照:3 12 54 35 这样的输入情况,考虑这个情况之后就满分了,所以说我个人感觉这个和题目描述的有一点不一样,所以说题目有一点…… 题解列表 2023年12月07日 0 点赞 0 评论 198 浏览 评分:0.0
2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n, b, c = 0; cin>>n; for(i…… 题解列表 2023年11月05日 0 点赞 0 评论 178 浏览 评分:0.0
求整数的和与均值 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a; double sum=0; for(int i=…… 题解列表 2023年09月06日 0 点赞 1 评论 148 浏览 评分:0.0
循环控制--4.求整数的和与均值 摘要:解题思路: 输入整数较多,如题目中:1=<n<=1000,不要用数组,直接一个一个输入,+sum就好了;注意事项: 提高结果的精确度:avg=aum/(n*1.0),而不是avg=sum/n*1.0 …… 题解列表 2023年03月24日 0 点赞 0 评论 116 浏览 评分:0.0