题解列表
自定义函数求一元二次方程
摘要:解题思路:根据判别式(b^2-4ac)的结果分成三类讨论注意事项:这里判别式<0时存在共轭复数根,复根的求法为x1,2=(-b±i√(4ac-b2))/2a参考代码:#include<iostream……
1511: 蓝桥杯算法提高VIP-复数求和
摘要:```cpp
#include
using namespace std;
class node
{
public:
int date1;
int date2;
node* nex……
(fly)1560: 蓝桥杯算法提高VIP-计算器(python代码)
摘要:解题思路:用一个二列表来表示,10个数字,然后找 出每个不同的地方注意事项:参考代码:dic={}
dic['0']=[[1,1,1],[0,0,0],[1,1,1]]
dic[&……
字符类型统计(Python语言)
摘要:解题思路:注意事项:参考代码:tp = tuple(input())alp,num,spa,el = 0,0,0,0for i in range(len(tp)): if tp[i].isalp……
(fly)1553: 蓝桥杯算法提高VIP-笨小猴(python)
摘要:解题思路:注意事项:参考代码:st=input()
def isprime(n):
ls=['1','3','7','9']……
1512: 蓝桥杯算法提高VIP-多项式输出
摘要:```cpp
#include
using namespace std;
int main()
{
int n;
cin >> n;
int* p = new int[n+1];
……
(简单易懂方法)[编程入门]结构体之成绩统计2
摘要:注意:代码:#include <stdio.h>struct stu{ char num[100]; char name[100]; int score[3]; int sum……
蓝桥杯2018年第九届真题-次数差Python
摘要:解题思路:注意事项:参考代码:a = input()c = []for i in set(a): c.append(a.count(i))print(max(c)-min(c))……
题解 1047: [编程入门]报数问题
摘要:解题思路:设置一个结构体 存储n个数字的原始编号,创建链表把n个数字用后插法存入链表,然后对报数得3 的节点删除,并从下一个节点开始重新报数,最后返回最后剩下的那个节点的原始编号注意事项:参考代码:#……