用“字符的二维数组” 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n = 0; char a[105][105…… 题解列表 2023年02月16日 0 点赞 0 评论 429 浏览 评分:9.9
1268: 第K极值 摘要:参考代码:#include<stdio.h> #include<stdlib.h> int cmp(const void *a,const void *b){ return *(int *)a…… 题解列表 2023年02月16日 1 点赞 0 评论 472 浏览 评分:9.9
判断素数和数字翻转结合 摘要:解题思路:用函数翻转一下 再判断 用数组存符合的数字 注意事项:最后一项没逗号 这个用数组和记录符合题目数字的个数解决参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2023年02月16日 0 点赞 0 评论 397 浏览 评分:9.9
思路清晰版本,在B站学的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s; scanf("%d",&n); int i,j,len=1,k,a[1…… 题解列表 2023年02月17日 0 点赞 0 评论 609 浏览 评分:9.9
求10000以内n的阶乘(c语言版本) 摘要:解题思路:注意事项:初始化 a[1]=1,len=1参考代码:#includeint main(){ int n,i,j,k,len=1,a[100000]={0};//len长度一开始定为 …… 题解列表 2023年02月17日 0 点赞 0 评论 792 浏览 评分:9.9
2973: 出现次数超过一半的数 摘要:```cpp #include #include using namespace std; int main() { int a[1001],b[1001],n; mem…… 题解列表 2023年02月17日 0 点赞 0 评论 405 浏览 评分:9.9
阶乘求和(c语言) 摘要:解题思路:注意事项: sn和n都需要用long long int 参考代码:#include<stdio.h>int main(){ int i, j; long long s…… 题解列表 2023年02月17日 0 点赞 0 评论 386 浏览 评分:9.9
简单易懂!!! 摘要:解题思路:重点编写,一个求回文数的函数+判断质数的函数注意事项:参考代码:#include<stdio.h>#include<math.h>//求回文数int huiwen(int n){ i…… 题解列表 2023年02月17日 0 点赞 0 评论 418 浏览 评分:9.9
3003: 鸡兔同笼问题 摘要:解题思路:分析样例: 鸡的只数:(30*4-90)/2=15; 兔的只数:(90-30*2)/2=15; 可得公式 : 鸡的只数:(x*4-y)/2 兔的只数:(y-x*2)/2注意事项:参…… 题解列表 2023年02月18日 0 点赞 0 评论 620 浏览 评分:9.9
[编程入门]有规律的数列求和 摘要:#include<iostream>using namespace std;//有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... //求出这个数列的前N项之和,保留两位…… 题解列表 2023年02月18日 0 点赞 1 评论 338 浏览 评分:9.9