明明的随机数-一个萝卜一个坑 #include#includeintmain(){intN=0,m=0,num=0,k=0;intarr[1001]={0};scanf("%d",&N);for(inti=0;i 题解列表 2023年07月18日 0 点赞 0 评论 467 浏览 评分:0.0 请指正,提交后显示第一个答案不正确 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(char a[100]){ int x = 0, y = 0, z = 0, e = 0; for (int…… 题解列表 2023年07月17日 0 点赞 0 评论 424 浏览 评分:0.0 1147: C语言训练-角谷猜想 摘要: #include int number_ou(int a)//当为偶数时 { printf("%d/2=%d\n",a,a/2); return a/2; } i…… 题解列表 2023年07月17日 0 点赞 0 评论 463 浏览 评分:0.0 不高兴的津津 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,c,maxday = 0,maxtime = 0;int main…… 题解列表 2023年07月17日 0 点赞 0 评论 581 浏览 评分:9.9 1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 467 浏览 评分:0.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100]; scanf("%d", &n); for (i …… 题解列表 2023年07月16日 0 点赞 0 评论 602 浏览 评分:0.0 不高兴的津津 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int day=0,maxx=0; f…… 题解列表 2023年07月16日 0 点赞 0 评论 465 浏览 评分:0.0 单词替换(优解) 摘要:解题思路:看下面↓注意事项:借鉴用,不要盲目的抄参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ in…… 题解列表 2023年07月16日 0 点赞 0 评论 832 浏览 评分:9.9 优质题解 1011: [编程入门]最大公约数与最小公倍数(C语言解法)辗转相除法 #includeintmax_gys(inta,intb)//辗转相除法{if(b==0){returna;}returnmax_gys(b,a%b);}intmin_gbs(inta,intb){return(a*b)/max_gys(a, 题解列表 2023年07月15日 6 点赞 20 评论 8643 浏览 评分:9.6 C语言解八皇后问题 摘要:解题思路:递归+回溯注意事项:注意输出,输出是行列号不是下标参考代码:#include <stdio.h>int place[13];int flag[13]={1,1,1,1,1,1,1,1,1,1…… 题解列表 2023年07月15日 0 点赞 0 评论 748 浏览 评分:9.9 « 12...492493494495496497498...29572958 »
请指正,提交后显示第一个答案不正确 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(char a[100]){ int x = 0, y = 0, z = 0, e = 0; for (int…… 题解列表 2023年07月17日 0 点赞 0 评论 424 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要: #include int number_ou(int a)//当为偶数时 { printf("%d/2=%d\n",a,a/2); return a/2; } i…… 题解列表 2023年07月17日 0 点赞 0 评论 463 浏览 评分:0.0
不高兴的津津 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,c,maxday = 0,maxtime = 0;int main…… 题解列表 2023年07月17日 0 点赞 0 评论 581 浏览 评分:9.9
1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 467 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,a[100][100]; scanf("%d", &n); for (i …… 题解列表 2023年07月16日 0 点赞 0 评论 602 浏览 评分:0.0
不高兴的津津 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int day=0,maxx=0; f…… 题解列表 2023年07月16日 0 点赞 0 评论 465 浏览 评分:0.0
单词替换(优解) 摘要:解题思路:看下面↓注意事项:借鉴用,不要盲目的抄参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ in…… 题解列表 2023年07月16日 0 点赞 0 评论 832 浏览 评分:9.9
优质题解 1011: [编程入门]最大公约数与最小公倍数(C语言解法)辗转相除法 #includeintmax_gys(inta,intb)//辗转相除法{if(b==0){returna;}returnmax_gys(b,a%b);}intmin_gbs(inta,intb){return(a*b)/max_gys(a, 题解列表 2023年07月15日 6 点赞 20 评论 8643 浏览 评分:9.6
C语言解八皇后问题 摘要:解题思路:递归+回溯注意事项:注意输出,输出是行列号不是下标参考代码:#include <stdio.h>int place[13];int flag[13]={1,1,1,1,1,1,1,1,1,1…… 题解列表 2023年07月15日 0 点赞 0 评论 748 浏览 评分:9.9