组合输出(从n个数中选择r个数 进行组合)利用深度优先遍历 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int n,r,arr[22];void dfs(int step, int flag){ if(…… 题解列表 2025年12月15日 0 点赞 0 评论 173 浏览 评分:0.0
简单易懂的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int k){ double sum = 0.0,result…… 题解列表 2025年12月18日 0 点赞 0 评论 210 浏览 评分:0.0
1029 [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n<=1){ …… 题解列表 2025年12月18日 0 点赞 0 评论 460 浏览 评分:0.0
1042: 电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char ch; while(scanf("%c",&ch)==1){ …… 题解列表 2025年12月18日 1 点赞 0 评论 228 浏览 评分:0.0
1060: 同因查找 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ for(int i=10;i<1001;i++){ &n…… 题解列表 2025年12月18日 0 点赞 0 评论 176 浏览 评分:0.0
题目 1187: 假币问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long n; while(1){ scanf("%ld&qu…… 题解列表 2025年12月18日 0 点赞 0 评论 220 浏览 评分:0.0
2166: 月度开销 摘要:解题思路:注意事项: if (l == 72418) l = 72417;参考代码:#include<stdio.h>#include<stdbool.h&g…… 题解列表 2025年12月18日 0 点赞 0 评论 199 浏览 评分:0.0
1060: 二级C语言-同因查找 摘要:解题思路:可以直接模三个数,也可以找到他们的最小公倍数再摸注意事项:输出时换行参考代码:#include<stdio.h>int main(){ int num; for(num=10;n…… 题解列表 2025年12月18日 0 点赞 0 评论 369 浏览 评分:0.0
c语言,绝对值,分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,d,x1,x2,m,n; sca…… 题解列表 2025年12月20日 0 点赞 0 评论 303 浏览 评分:0.0