1635 这才是好方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n,c,d; while(scanf("%d",&n)!=EOF){ b=0; …… 题解列表 2021年11月18日 0 点赞 0 评论 244 浏览 评分:0.0
解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码: n = int(input()) s = list(map(int,input().split())) print(int(sum(s)/len(s)))…… 题解列表 2021年12月29日 0 点赞 0 评论 234 浏览 评分:0.0
1635: 蓝桥杯算法训练VIP-整数平均值 摘要:用指针操作。#include <bits/stdc++.h> using namespace std; void average(int *p,int n){ int sum(0);…… 题解列表 2022年01月11日 0 点赞 0 评论 98 浏览 评分:0.0
python-整数平均值 摘要:解题思路:貌似没有python的题解,加一下哈。注意事项:注意计算后的结果要取整。参考代码:def f(n): A = [int(i) for i in input().strip().…… 题解列表 2022年01月24日 0 点赞 0 评论 259 浏览 评分:0.0
Hifipsysta-1635: 蓝桥杯算法训练VIP-整数平均值 摘要:```cpp #include using namespace std; int main(){ int N, tmp, sum=0; while(cin>>N){ …… 题解列表 2022年02月11日 0 点赞 0 评论 158 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 题解(c++容易,呵呵) 摘要:解题思路:这题就是累加和求平均值。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[1005];void f(int n){…… 题解列表 2022年05月15日 0 点赞 0 评论 147 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a,t;int main(){ cin>>n; for(int i=0…… 题解列表 2022年05月16日 0 点赞 0 评论 154 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],sum=0,aver; scanf("%d",&n); for(i=0;…… 题解列表 2022年07月14日 0 点赞 0 评论 161 浏览 评分:0.0
编写题解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; int a[100]={0}; int *p…… 题解列表 2022年10月18日 0 点赞 0 评论 66 浏览 评分:0.0
整数平均值——python简单解法(答案要取整) 摘要:解题思路:求列表元素平均数注意事项:最后输出的结果是整数,所以要整除参考代码:n=int(input())l=list(map(int,input().split()))sum=0for i in l…… 题解列表 2022年10月19日 0 点赞 0 评论 181 浏览 评分:0.0