malloc动态分配内存 循环每次后移一位 摘要:解题思路:每次移动一位注意事项:时间复杂度比较高 算法效率不高 比较好理解参考代码:#include <stdio.h>#include <stdlib.h>#include <errno.h>vo…… 题解列表 2024年08月26日 0 点赞 0 评论 111 浏览 评分:0.0
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long long a=1; scanf("%d",&n); for(i…… 题解列表 2024年08月25日 0 点赞 0 评论 233 浏览 评分:9.9
结构体数组解决(c语言代码) 摘要:```c #include #include #include #include #define MAX 10001 typedef struct { char …… 题解列表 2024年08月25日 0 点赞 0 评论 276 浏览 评分:0.0
简单易懂(c语言代码) 摘要:```c #include #include #define max(a,b) (a>b?a:b) // 宏定义,返回两个值中的较大者 #define MAX 101 …… 题解列表 2024年08月25日 1 点赞 0 评论 178 浏览 评分:0.0
编写题解 2950: 素数回文数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int s(int n){ for(int i=2;i*i<=n;i++) { …… 题解列表 2024年08月24日 0 点赞 0 评论 432 浏览 评分:0.0
筛选N以内的素数 摘要:题目让筛选素数,首先我们先了解一下什么是素数?简而言之素数就是不能被除1和他本身之外整除的数。那么思路就比较清楚了,我们让N以内所有的数都对小于他的数取余,只要有取余等于零的,说明他就可以被别的数整除…… 题解列表 2024年08月24日 0 点赞 0 评论 240 浏览 评分:9.9
909090909090909090909090909 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15][15],c=0;void f(int x,int y){ if(…… 题解列表 2024年08月24日 0 点赞 0 评论 165 浏览 评分:9.9
909090909090909090909090909 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>using namespace std;const int n=10;int a[n+5][n+5];i…… 题解列表 2024年08月24日 0 点赞 0 评论 173 浏览 评分:9.9
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 262 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=…… 题解列表 2024年08月24日 0 点赞 1 评论 278 浏览 评分:9.9