题解列表

筛选

用指针交换两个数字

摘要:解题思路:用指针引用两个变量的地址进行数字交换注意事项:指针取地址参考代码:#include<stdio.h>void swap(int *a,int *b);int main(){ int a,b;……

题目 1870: 统计字符数 题解(c)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> void findx(char *p)   //查询函数,查询字符串中出现最多次的字母以及次数{    int i=0,n,m=0,z……

用高精度除于低精度,求余数是否为0

摘要:解题思路:高精度除低精度 ,要运用小学教的除法运算思路,用flag标记是否有因子输出,如无,则输出none注意事项:参考代码:#include<stdio.h> #include<string.h>i……

思路清晰版本,在B站学的

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int n,s;     scanf("%d",&n);     int i,j,len=1,k,a[1……

回文数(简单)

摘要:解题思路:核心是编写一个算回文数的一个函数注意事项:参考代码:#include<stdio.h>//编写一个算回文数的函数int search(int n){     int sum=0;     f……

判断素数和数字翻转结合

摘要:解题思路:用函数翻转一下 再判断 用数组存符合的数字 注意事项:最后一项没逗号 这个用数组和记录符合题目数字的个数解决参考代码:#include<bits/stdc++.h>using namespa……

1268: 第K极值

摘要:参考代码:#include<stdio.h> #include<stdlib.h> int cmp(const void *a,const void *b){ return *(int *)a……

用“字符的二维数组”

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   int n = 0;   char a[105][105……