差分与前缀和,时间复杂度O(nlogn) 摘要:解题思路:代码和注释已经很清晰了注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxm…… 题解列表 2022年08月24日 0 点赞 0 评论 650 浏览 评分:9.9
字符串逆序 摘要:解题思路:注意事项:参考代码:n=95859 while True: n+=1 a=str(n) b=a[::-1] if a==b: pr…… 题解列表 2022年08月24日 0 点赞 0 评论 679 浏览 评分:9.9
时间复杂度O(1) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll a,b,n,ans;int main…… 题解列表 2022年08月24日 0 点赞 0 评论 556 浏览 评分:9.9
时间复杂度O(n),简单的数学题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010int n,ans[maxn];int main…… 题解列表 2022年08月24日 0 点赞 0 评论 681 浏览 评分:9.9
求大佬指点---查重与排序 摘要:```c //思路:输入->查重->排序->输出; #include int main() { int M; scanf("%d", &M); int a[200];//可以用动态…… 题解列表 2022年08月25日 0 点赞 0 评论 483 浏览 评分:9.9
求大佬只指点——高中数列题(中国剩余定理) 摘要:```c #include int main() { int x, y; scanf("%d %d", &x, &y); int i; int sum = 0; for (i…… 题解列表 2022年08月25日 0 点赞 0 评论 448 浏览 评分:9.9
题目 1063: 二级C语言-统计字符 摘要:``` #include #include using namespace std; int main() { string str; getline(cin, str)…… 题解列表 2022年08月25日 0 点赞 2 评论 796 浏览 评分:9.9
偶数求和,简单思路(C语言版) 摘要:解题思路:思路很简单,每m个数就打印一次值,最后不足的时候进行判断,再进行值的打印注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.…… 题解列表 2022年08月25日 0 点赞 0 评论 604 浏览 评分:9.9
蓝桥杯2022年第十三届省赛真题-刷题统计——减少循环次数避免时间超限 摘要:解题思路:一般的循环思路大家尝试过后便会发现时间超限,我们就得想办法减少循环次数,那么就从每一周做的题数上来做文章,用总题数减去 整数周做的题数,最后剩下的循环次数在7次以内…… 题解列表 2022年08月26日 0 点赞 1 评论 823 浏览 评分:9.9
无需插入,只要比较大小即可 摘要:解题思路:如果比当前数组值大,则输出待插入的值。跳出循环,打印剩余的数值注意事项:参考代码:#include"stdio.h"int main(){ int a[10],b,i; for(i=0;i…… 题解列表 2022年08月26日 0 点赞 0 评论 383 浏览 评分:9.9