题解列表
yolo_mm 用筛法求之N内的素数
摘要:解题思路: 常规筛,把倍数筛去注意事项: i*i 而不是从2倍筛起,比如i=5,如果是两倍则在i=2的时候就已经筛去了参考代码:#include<bits/stdc++.h>using ……
C++题解,重点弄清题意
摘要:解题思路:注意事项:分糖果的时候是全部小朋友同时分的参考代码:#include<iostream>using namespace std;const int N = 100;int n;int a[N……
蓝桥杯2016年第七届真题-密码脱落
摘要:解题思路:将此字符串倒过来,找它与原串的最长公共子序列,最后用原串的长度减去最长公共子序列的长度即可。参考代码:#include <bits/stdc++.h>
using namespace st……
蓝桥杯2015年第六届真题-切开字符串
摘要:```cpp
#include
#include
#include
#include
using namespace std;
string st;
int n,m;
bool d……
1512: 蓝桥杯算法提高VIP-多项式输出
摘要:```cpp
#include
using namespace std;
int main()
{
int n;
cin >> n;
int* p = new int[n+1];
……
1511: 蓝桥杯算法提高VIP-复数求和
摘要:```cpp
#include
using namespace std;
class node
{
public:
int date1;
int date2;
node* nex……
自定义函数求一元二次方程
摘要:解题思路:根据判别式(b^2-4ac)的结果分成三类讨论注意事项:这里判别式<0时存在共轭复数根,复根的求法为x1,2=(-b±i√(4ac-b2))/2a参考代码:#include<iostream……
编写题解 1465: 蓝桥杯基础练习VIP-回形取数
摘要:解题思路:注意事项:参考代码:#include "iostream"#include "string.h"using namespace std;int main(){ int n,m; ……