题解列表
优质题解
蓝桥杯2020年第十一届国赛真题-补给 题解
摘要:**解题思路:**
*状压DP + 最短路径:*
w[i][j]:从村庄 i 到村庄 j 之间的最短距离;
f[i][j]:从村庄 0 走到村庄 j ,且经过经过村庄的状态为 i 的最小飞行距离……
数组存储,高精度相乘比较!
摘要:
```
#include
#include
#include
#include
#include
#include
using namespace std;
const int I……
1093: 字符逆序
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ getline(cin,s); fo……
蓝桥杯2015年第六届真题-切开字符串
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,A,B,max_ans=-1;string s,a,b;int chec……
数学题-GCD(c++)
摘要:数学题,不是很懂,先放着
```cpp
#include
using namespace std;
typedef long long ll;
int main()
{
ll a……
提公因式+前缀和(c++)
摘要:```cpp
#include
using namespace std;
typedef long long ll;
const int N=2e5+5;
int n;
ll a[N],s……
震惊,缺少两行代码居然是ac和超时的区别!!
摘要:解题思路:注意事项:A^B=x成立时有A^x=B参考代码:#includeusing namespace std;int n,m,l,r,x;const int maxm=100003;int a[m……