2973: 出现次数超过一半的数 摘要:```cpp #include #include using namespace std; int main() { int a[1001],b[1001],n; mem…… 题解列表 2023年02月17日 0 点赞 0 评论 407 浏览 评分:9.9
用指针交换两个数字 摘要:解题思路:用指针引用两个变量的地址进行数字交换注意事项:指针取地址参考代码:#include<stdio.h>void swap(int *a,int *b);int main(){ int a,b;…… 题解列表 2023年02月17日 0 点赞 0 评论 543 浏览 评分:0.0
题目 1870: 统计字符数 题解(c) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void findx(char *p) //查询函数,查询字符串中出现最多次的字母以及次数{ int i=0,n,m=0,z…… 题解列表 2023年02月17日 0 点赞 0 评论 442 浏览 评分:0.0
求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 评论 794 浏览 评分:9.9
用高精度除于低精度,求余数是否为0 摘要:解题思路:高精度除低精度 ,要运用小学教的除法运算思路,用flag标记是否有因子输出,如无,则输出none注意事项:参考代码:#include<stdio.h> #include<string.h>i…… 题解列表 2023年02月17日 0 点赞 1 评论 560 浏览 评分:9.0
思路清晰版本,在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
回文数(简单) 摘要:解题思路:核心是编写一个算回文数的一个函数注意事项:参考代码:#include<stdio.h>//编写一个算回文数的函数int search(int n){ int sum=0; f…… 题解列表 2023年02月17日 1 点赞 1 评论 884 浏览 评分:10.0
判断素数和数字翻转结合 摘要:解题思路:用函数翻转一下 再判断 用数组存符合的数字 注意事项:最后一项没逗号 这个用数组和记录符合题目数字的个数解决参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2023年02月16日 0 点赞 0 评论 400 浏览 评分: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 评论 473 浏览 评分:9.9
用“字符的二维数组” 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n = 0; char a[105][105…… 题解列表 2023年02月16日 0 点赞 0 评论 433 浏览 评分:9.9