题解列表
2973: 出现次数超过一半的数
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int a[1001],b[1001],n;
mem……
题目 1870: 统计字符数 题解(c)
摘要:解题思路:注意事项:参考代码:#include<stdio.h> void findx(char *p) //查询函数,查询字符串中出现最多次的字母以及次数{ int i=0,n,m=0,z……
求10000以内n的阶乘(c语言版本)
摘要:解题思路:注意事项:初始化 a[1]=1,len=1参考代码:#includeint main(){ int n,i,j,k,len=1,a[100000]={0};//len长度一开始定为 ……
用高精度除于低精度,求余数是否为0
摘要:解题思路:高精度除低精度 ,要运用小学教的除法运算思路,用flag标记是否有因子输出,如无,则输出none注意事项:参考代码:#include<stdio.h> #include<string.h>i……