题解列表
题目 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……
思路清晰版本,在B站学的
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s; scanf("%d",&n); int i,j,len=1,k,a[1……
判断素数和数字翻转结合
摘要:解题思路:用函数翻转一下 再判断 用数组存符合的数字 注意事项:最后一项没逗号 这个用数组和记录符合题目数字的个数解决参考代码:#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……
2297: 蓝桥杯2018年第九届真题-版本分支 (时间复杂度O(M+Q))
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstring>
#include<algorithm>
#include<cmath>
#include……