刚来只会用基础语句求解。。 解题思路:参考题目给出的信息,判断水仙花数的关键就是需要将3位数分别拆开,看了一下大佬写的题解,是这么个理,但是还没学到这个用法,就自己搞了一个比较基础的版本。。用整除和取余来得到3个数字。注意事项:参考代码:foriinrange(100, 题解列表 2022年05月10日 0 点赞 0 评论 703 浏览 评分: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 评论 494 浏览 评分:0.0
[编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double x,b,c;int main(){ cin>>x; b=x…… 题解列表 2022年05月10日 0 点赞 0 评论 465 浏览 评分: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 评论 545 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 423 浏览 评分:0.0
[编程入门]报数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;scanf("%d",&n); …… 题解列表 2022年05月10日 0 点赞 0 评论 461 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10];int main() { for(int i=0;i…… 题解列表 2022年05月10日 0 点赞 0 评论 532 浏览 评分: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 评论 538 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:简单模拟注意事项:说30行是因为我的注释占了三行不算。参考代码:#include<bits/stdc++.h>using namespace std;int n,sum[3],maxn,cn…… 题解列表 2022年05月10日 0 点赞 0 评论 571 浏览 评分:0.0
自定义函数之数字后移 #includevoidf();intmain(){f();return0;}voidf(){inta[100],i,w,z,p,j,b[100];scanf("%d",&i);for(j=0;j 题解列表 2022年05月10日 0 点赞 0 评论 491 浏览 评分:0.0