题解列表

筛选

平均值计算

摘要:解题思路:先把数输入,把输入的数求和,除以个数拿到平均值,找出比平均值大的数统计下来,然后输出注意事项:输入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,分别用来保存每个阶乘结果和阶乘求和的结……

题解 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……

2850: 输出亲朋字符串

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){    cin.getline(……

2946: 数制转换

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int bbb[20]; int main() {     int ……