题解列表

筛选

平均值计算

摘要:解题思路:先把数输入,把输入的数求和,除以个数拿到平均值,找出比平均值大的数统计下来,然后输出注意事项:输入10个数参考代码:#include<stdio.h>int main(){    int i……

参考c语言写的

摘要:def add(d, i, x, maxh):     while i <= maxh + 1:         d[i] += x         i += i

A+B python题解

解题思路:注意事项:参考代码:a,b=map(int,input().split())print(a+b)//说什么内容字数太少,本来以为会考什么数字太长需要用到数组啥的,没想到这么简单

1014: [编程入门]阶乘求和

解题思路:1.首先,在程序开头包含了2.在主函数main()中,定义了变量n、i、j,分别用来保存输入的整数、循环计数的变量。3.定义了变量ret和sum,分别用来保存每个阶乘结果和阶乘求和的结果。4.使用scanf()函数从标准输入中读取一个长整型数,保存到变量n中。

题解 2766: 甲流疫情死亡率

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){   int a,b;   cin>>……

题解 2767: 计算多项式的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a,b,c,d,x,fx;    ci……

题解 2997: 梯形面积

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double e;    e=150*2/15*(1……