题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sn=0,sum=1; …… 题解列表 2024年01月18日 1 点赞 0 评论 261 浏览 评分:9.9
题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int i=100; i<=999; i++…… 题解列表 2024年01月18日 0 点赞 0 评论 237 浏览 评分:9.9
题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c ; int x,y,z ; …… 题解列表 2024年01月18日 0 点赞 0 评论 351 浏览 评分:9.9
C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 201 浏览 评分:0.0
题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 221 浏览 评分:9.9
蛮力法求解素数 摘要:解题思路:素数是除了能被1和本身整除,其余数都不能整除的数可通过蛮力法和循环求解此题外部循环拿到从2~a的所有数(a为用户输入的数)内部循环拿到从2~a-1的所有数用外部循环拿到的数逐一取模内部循环拿…… 题解列表 2024年01月18日 0 点赞 0 评论 316 浏览 评分:0.0
2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,d; char c…… 题解列表 2024年01月18日 0 点赞 0 评论 268 浏览 评分:9.9
c代码记录之下一天日期--水题 摘要:```c #include int main() { int y,m,d; scanf("%d-%d-%d",&y,&m,&d); if(d==31&&m==12)…… 题解列表 2024年01月18日 0 点赞 0 评论 289 浏览 评分:0.0
题解 2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; const int N = 110; int arr[N]; int main(…… 题解列表 2024年01月18日 0 点赞 0 评论 257 浏览 评分:0.0
利用递归求解迭代法求平方根 摘要:解题思路:要求解此题,首先需要搞明白题目说的是什么意思,简单解释一下,题目大意为:设用户输入的量为a,需要我们输出的量为Xn,则:x1=a/2x2=(x1+x1/2)/2 此处是 (x1…… 题解列表 2024年01月18日 0 点赞 0 评论 433 浏览 评分:0.0