类实现 —— 结构体之成绩统计2 摘要:解题思路: 定义学生类(然后初始化N个<100),每个类有属性 :学号,姓名、三科成绩 :string num,name、 vector容器注意事项: 参考代码:#include <iostre…… 题解列表 2022年10月18日 0 点赞 0 评论 500 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:最小公倍数和最大公约数的基本思想。最小公倍数,从两个数中大的数开始找起,最大不超过两数的乘积;最大公因数,从两数中小的数开始找起,最小不超过1.注意事项:注意空格,注意换行,注意函数原型声明…… 题解列表 2022年10月18日 0 点赞 0 评论 397 浏览 评分: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 评论 343 浏览 评分:0.0
2040-同学的等待 摘要:```cpp /* 1.总等待时间最短,所以等待时间要升序排列 2.总等待时间要用long long型存储 3.[0,n)与[1,n]的元素个数相同 */ #include #…… 题解列表 2022年10月18日 0 点赞 0 评论 769 浏览 评分:0.0
1857: 姜太公钓鱼 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n = 0, a = 0, ans = 0; scanf("%d", &n…… 题解列表 2022年10月18日 0 点赞 0 评论 285 浏览 评分:0.0
输入输出练习之浮点数专题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double a; scanf("%lf",&a); printf("%f\n",a); printf("%.…… 题解列表 2022年10月19日 0 点赞 0 评论 421 浏览 评分:0.0
简单 c语言 摘要:解题思路:先找到a的一个公因数,再去找b的公因数,判断是否相等,若不相等,继续寻找注意事项:参考代码:#include<stdio.h>int main(){ int a, b,i,c,d; …… 题解列表 2022年10月19日 0 点赞 0 评论 360 浏览 评分:0.0
数对——python四行解决问题 摘要:解题思路:注意事项:注意题目中输出时含空格的参考代码:x=int(input())for i in range(1,x+1): if x%i==0: print(str(i)+" …… 题解列表 2022年10月19日 0 点赞 0 评论 377 浏览 评分:0.0
数组查找及替换——python超详细简单解法 摘要:解题思路:注意事项:参考代码:n,b=map(int,input().split())l=list(map(int,input().split())) #将输入转化为列表l.so…… 题解列表 2022年10月19日 0 点赞 0 评论 409 浏览 评分:0.0
整数平均值——python简单解法(答案要取整) 摘要:解题思路:求列表元素平均数注意事项:最后输出的结果是整数,所以要整除参考代码:n=int(input())l=list(map(int,input().split()))sum=0for i in l…… 题解列表 2022年10月19日 0 点赞 0 评论 565 浏览 评分:0.0