蓝桥杯算法提高- 杨辉三角 简单 摘要:#include <stdio.h> int main() { int n; scanf("%d",&n); int a[200][200]; for(int i=0;i<=n;i…… 题解列表 2022年03月19日 0 点赞 0 评论 621 浏览 评分:9.9
蓝桥杯算法提高VIP-快速幂 摘要:基于二进制递归的解题思路#include<iostream>using namespace std;long long a,b;int p;long long pow_mod(long long a,…… 题解列表 2022年03月19日 0 点赞 0 评论 522 浏览 评分:0.0
图论拓扑排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年03月19日 0 点赞 0 评论 875 浏览 评分:0.0
寻找奇整数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[15] = { 3,7,5,13,25,45,78,23,8,33,9,19,2…… 题解列表 2022年03月19日 0 点赞 0 评论 592 浏览 评分:9.9
C语言最简单的解法 摘要:解题思路:其实思路很简单,就是用getchar()函数读取字符,如果是空格不输出。注意事项:参考代码:#include<stdio.h> int main() { int x; …… 题解列表 2022年03月19日 0 点赞 0 评论 898 浏览 评分:8.8
双指针 找单词 摘要:```cpp #include using namespace std; string s1; int main(){ getline(cin, s1); int sum …… 题解列表 2022年03月19日 0 点赞 0 评论 433 浏览 评分:0.0
用筛法求之N内的素数 摘要:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int num,k,i; cin>>num; //暴力法…… 题解列表 2022年03月19日 0 点赞 0 评论 393 浏览 评分:0.0
双指针做法 摘要:```cpp #include using namespace std; sets; string s1; int n, m; int main(){ getline(cin, …… 题解列表 2022年03月19日 0 点赞 0 评论 448 浏览 评分:0.0
KMP基础版本 摘要:解题思路: 可以看代码的注释注意事项: 有不明白的地方,比如next的赋值结果,不妨一个打印,慢慢观摩参考代码:#include<stdio.h> #include<st…… 题解列表 2022年03月19日 0 点赞 0 评论 563 浏览 评分:9.9
【蓝桥杯】整数拼接 摘要:思路分析: 根据题意可推出,A与B拼接可以推出等式 A + 10^x^ + B,题目可以翻译成是求A + 10^x + B % K == 0的个数。首先我们肯定不能去枚举两重循环,这样必定会超时(不过…… 题解列表 2022年03月19日 0 点赞 1 评论 1467 浏览 评分:9.3