题解列表

筛选

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

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

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

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

用指针交换两个数字

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

最大数位置

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[100],i; int max; int  max_position; scanf("%d",……

陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int  a[10],i; int  num=0;    int n=10;    int  max; for……

阶乘求和(c语言)

摘要:解题思路:注意事项:    sn和n都需要用long long int  参考代码:#include<stdio.h>int main(){     int i, j;     long long s……

简单易懂!!!

摘要:解题思路:重点是写一个求高精度阶乘的函数出来注意事项:每一次循环,要重新初始化数组的值。参考代码:#include#include//求阶乘的函数int jiecheng(int *a,int n){……

简单易懂!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int n)//判断是否为质子 {     int i;     for(i=2;i<n;i++)     { ……