简单易懂(c语言代码) 摘要:```c #include #include #define max(a,b) (a>b?a:b) // 宏定义,返回两个值中的较大者 #define MAX 101 …… 题解列表 2024年08月25日 1 点赞 0 评论 153 浏览 评分: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 评论 407 浏览 评分:0.0
筛选N以内的素数 摘要:题目让筛选素数,首先我们先了解一下什么是素数?简而言之素数就是不能被除1和他本身之外整除的数。那么思路就比较清楚了,我们让N以内所有的数都对小于他的数取余,只要有取余等于零的,说明他就可以被别的数整除…… 题解列表 2024年08月24日 0 点赞 0 评论 217 浏览 评分: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 评论 146 浏览 评分: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 评论 150 浏览 评分:9.9
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 235 浏览 评分: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 评论 261 浏览 评分:9.9
1492 蓝桥杯算法提高VIP-产生数 摘要:解题思路:无注意事项:无参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],p[1000…… 题解列表 2024年08月24日 0 点赞 0 评论 236 浏览 评分:10.0
铺地毯 利用二维数组 易懂 摘要:解题思路:利用二维数组形成矩阵,答案中感觉比较少提到这种方法,在这里我来给出,请不吝赐教。参考代码: int n; scanf("%d",&n); …… 题解列表 2024年08月23日 1 点赞 0 评论 180 浏览 评分:6.0
结构体数组解决(c语言代码) 摘要:```c #include #include #define MAX 101 typedef struct { // 定义一个结构体 char s[MAX];…… 题解列表 2024年08月23日 0 点赞 0 评论 193 浏览 评分:0.0