[编程入门]结构体之成绩统计2 摘要:解题思路:简单模拟注意事项:说30行是因为我的注释占了三行不算。参考代码:#include<bits/stdc++.h>using namespace std;int n,sum[3],maxn,cn…… 题解列表 2022年05月10日 0 点赞 0 评论 421 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> #define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)us…… 题解列表 2022年05月10日 0 点赞 0 评论 361 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10];int main() { for(int i=0;i…… 题解列表 2022年05月10日 0 点赞 0 评论 397 浏览 评分:0.0
[编程入门]报数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;scanf("%d",&n); …… 题解列表 2022年05月10日 0 点赞 0 评论 343 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 296 浏览 评分:0.0
最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ if(b==0) return a; r…… 题解列表 2022年05月10日 0 点赞 0 评论 404 浏览 评分:0.0
[编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double x,b,c;int main(){ cin>>x; b=x…… 题解列表 2022年05月10日 0 点赞 0 评论 342 浏览 评分:0.0
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,a,x,y,d;int main(){ cin>>n…… 题解列表 2022年05月10日 0 点赞 0 评论 350 浏览 评分:0.0
刚来只会用基础语句求解。。 摘要:解题思路:参考题目给出的信息,判断水仙花数的关键就是需要将3位数分别拆开,看了一下大佬写的题解,是这么个理,但是还没学到这个用法,就自己搞了一个比较基础的版本。。用整除和取余来得到3个数字。注意事项:…… 题解列表 2022年05月10日 0 点赞 0 评论 545 浏览 评分:0.0
我这个应该是对任何的数值都可以 摘要:解题思路:注意事项:参考代码:a = 40list1 = []list2 = []for i in range(2,int(a**0.5)+1): if a%i == 0: lis…… 题解列表 2022年05月10日 0 点赞 0 评论 359 浏览 评分:0.0