aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); while(n--) …… 题解列表 2022年10月24日 0 点赞 0 评论 555 浏览 评分:10.0
二级C语言-平均值计算 ```#includeusingnamespacestd;intmain(){intarr[10],sum=0;for(inti=0;i>arr[i];//输出十个整数}for(inti=0;i<10;i++){sum+=arr[i];//求十个数的和}intaverage=sum/10;//求平均值 题解列表 2022年10月26日 1 点赞 0 评论 497 浏览 评分:10.0
使用while循环 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){ int k; k=i; int t,s=0; …… 题解列表 2022年11月03日 0 点赞 0 评论 605 浏览 评分:10.0
全排列解决排队买票 解题思路:由题目可知,1元小孩通过,售票员手里的零钱+1,2元的小孩通过,售票员的零钱-1,初始的零钱数目是0。不妨把1元的小孩设成1,把2元的小孩设成-1,建立一个由n个1和k个-1组成的m元动态数组,将数组全排列,将每种情况的数组从头累加, 题解列表 2022年11月04日 1 点赞 0 评论 827 浏览 评分:10.0
完数的判断(Python) 摘要:解题思路:注意事项:要保证时间限制的情况下不能通过暴力求解参考代码:N = int(input())for i in range(2, N) : lst_factors = [1] lim…… 题解列表 2022年11月04日 1 点赞 0 评论 726 浏览 评分:10.0
这么简单的题还属于中档题? 摘要:解题思路:基本操作注意事项:这有什么注意的,直接五星好评参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); …… 题解列表 2022年11月09日 1 点赞 0 评论 1415 浏览 评分:10.0
求平均年龄(数组法) 摘要:解题思路:这里只要搞一个数组就可以存储值注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); float a[n…… 题解列表 2022年11月12日 1 点赞 0 评论 1543 浏览 评分:10.0
超详细通俗易懂C++,暴力求解 摘要:参考代码:#include <iostream> #include <math.h> using namespace std; int main() { int a,b; …… 题解列表 2022年11月22日 0 点赞 0 评论 506 浏览 评分:10.0
2905: 最大值和最小值的差 摘要:```cpp #include using namespace std; int main() { int M,max=-10001,min=10001,x; cin>>M…… 题解列表 2022年11月30日 0 点赞 0 评论 693 浏览 评分:10.0
编写题解:数的读法【Python】 摘要:解题思路:每四位分开读,具体见代码和注释参考代码:d = {'1':'yi', '2':'er', '3':'s…… 题解列表 2022年12月07日 0 点赞 0 评论 810 浏览 评分:10.0