1681: 数据结构-行编辑程序(c语言代码,包你懂的) 摘要:此题有两个点要注意,就是空格要不要管,还有多组数据的输入怎么处理 题目的输入是这样的: whil##ilr#e(s#*s) outcha@ putchar(*s=#++);这个输入前面是…… 题解列表 2024年08月07日 1 点赞 0 评论 691 浏览 评分:10.0
用VS来写最大值和最小值之差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int M; scanf_s("%d", &M); int number[10000]; int i = 0;…… 题解列表 2024年08月07日 0 点赞 0 评论 513 浏览 评分:0.0
2897: 神奇的幻方 解题思路:注意事项:参考代码:n=int(input())a=1n=2*n-1l=[[0forjinrange(n)]foriinrange(n)]row=0col=n//2l[0][col]=1whilea 题解列表 2024年08月07日 0 点赞 0 评论 579 浏览 评分:2.0 2899: 蛇形填充数组 解题思路:注意事项:参考代码:n=int(input())l=[[0forjinrange(n)]foriinrange(n)]a=1b=0foriinrange(n):ifb%2!=0:forjinrange(n):if0<=i<=n-1and0<=j<=n-1:l[j][i]=aa+=1i-=1e 题解列表 2024年08月07日 0 点赞 0 评论 562 浏览 评分:0.0 编写题解 2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int N=310; double a[N];in…… 题解列表 2024年08月07日 0 点赞 0 评论 441 浏览 评分:0.0 编写题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a[100],sum=0,x=0; …… 题解列表 2024年08月07日 0 点赞 0 评论 583 浏览 评分:0.0 【超级详细】新手小白都能看懂的解题思路 解题思路:这道题求阶乘和数不难,但是要对结果按字典序排列需要用到一点小技巧。阶乘和数就是把数字拆分成每一位后对应的阶乘等于它本身,只需要先把数字挨个拆分,然后对拆分后的数字挨个求阶乘,最后对每一个阶乘求和看是否等于原来的数它本身。以上就是阶乘和数的求解思路,怎么样,不难吧。 题解列表 2024年08月07日 1 点赞 0 评论 773 浏览 评分:9.9 1680: 数据结构-八进制数 题解 ```c#include#includetypedefstruct{intdate[101];inttop;}stack;//栈intisempty(stack*s){//判断栈是否为空returns->top==-1?0:1;}voidpush(stack*s, 题解列表 2024年08月07日 0 点赞 0 评论 664 浏览 评分:0.0 最直观的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void big(double a, double b,double c);void equal(d…… 题解列表 2024年08月06日 0 点赞 0 评论 593 浏览 评分:9.9 编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int n){ int ans=0; for(int i=1;i<n;i…… 题解列表 2024年08月06日 0 点赞 0 评论 756 浏览 评分:0.0 « 12...433434435436437438439...59075908 »
2899: 蛇形填充数组 解题思路:注意事项:参考代码:n=int(input())l=[[0forjinrange(n)]foriinrange(n)]a=1b=0foriinrange(n):ifb%2!=0:forjinrange(n):if0<=i<=n-1and0<=j<=n-1:l[j][i]=aa+=1i-=1e 题解列表 2024年08月07日 0 点赞 0 评论 562 浏览 评分:0.0
编写题解 2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int N=310; double a[N];in…… 题解列表 2024年08月07日 0 点赞 0 评论 441 浏览 评分:0.0
编写题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a[100],sum=0,x=0; …… 题解列表 2024年08月07日 0 点赞 0 评论 583 浏览 评分:0.0
【超级详细】新手小白都能看懂的解题思路 解题思路:这道题求阶乘和数不难,但是要对结果按字典序排列需要用到一点小技巧。阶乘和数就是把数字拆分成每一位后对应的阶乘等于它本身,只需要先把数字挨个拆分,然后对拆分后的数字挨个求阶乘,最后对每一个阶乘求和看是否等于原来的数它本身。以上就是阶乘和数的求解思路,怎么样,不难吧。 题解列表 2024年08月07日 1 点赞 0 评论 773 浏览 评分:9.9
1680: 数据结构-八进制数 题解 ```c#include#includetypedefstruct{intdate[101];inttop;}stack;//栈intisempty(stack*s){//判断栈是否为空returns->top==-1?0:1;}voidpush(stack*s, 题解列表 2024年08月07日 0 点赞 0 评论 664 浏览 评分:0.0
最直观的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void big(double a, double b,double c);void equal(d…… 题解列表 2024年08月06日 0 点赞 0 评论 593 浏览 评分:9.9
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int n){ int ans=0; for(int i=1;i<n;i…… 题解列表 2024年08月06日 0 点赞 0 评论 756 浏览 评分:0.0