蓝桥杯2015年第六届真题-生命之树 摘要:解题思路:树形dp,查找最大子树和注意事项:集合可以为空,也就是说如果树中节点全小于0则为空集输出0参考代码:#include<bits/stdc++.h> using namespace std;…… 题解列表 2024年04月03日 0 点赞 0 评论 249 浏览 评分:0.0
字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *tongji(char *a){ int i; static int b[4]={0}; for(i=0;*(a+i)!=&#…… 题解列表 2024年04月03日 0 点赞 0 评论 228 浏览 评分:0.0
2576: 蓝桥杯2020年第十一届省赛真题-解码 摘要: #include #include #include using namespace std; char str1[100]; char st…… 题解列表 2024年04月04日 0 点赞 0 评论 229 浏览 评分:0.0
题解 1668: printf基础练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int num; // 读取输入整数 scanf("%d", &n…… 题解列表 2024年04月04日 1 点赞 0 评论 572 浏览 评分:0.0
3151: 蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include<iostream>using namespace std;const int N = 15;//创建飞机结构体struct plane { int Ti, Di, Li;}p[N];…… 题解列表 2024年04月04日 0 点赞 0 评论 438 浏览 评分:0.0
三行简便 编写题解 2797: 最高的分数 摘要:解题思路:map;list;max注意事项:仔细检查中英文符号参考代码:n=int(input())a=list(map(int,input().split()))print(max(a))…… 题解列表 2024年04月04日 0 点赞 0 评论 460 浏览 评分:0.0
两行简便 编写题解 2776: A*B问题 摘要:解题思路:map,split注意事项:a,b=map(int,input().split())参考代码:a,b=map(int,input().split())print(a*b)…… 题解列表 2024年04月04日 0 点赞 0 评论 344 浏览 评分:0.0
八行简便 编写题解 2774: 计算三角形面积 摘要:解题思路:海伦公式,p=0.5*(a+b+c)注意事项:import math参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a…… 题解列表 2024年04月04日 0 点赞 0 评论 355 浏览 评分:0.0
字符串排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,a[3][100],t[100]; for(i=0;i<3;…… 题解列表 2024年04月04日 0 点赞 0 评论 233 浏览 评分:0.0
蓝桥杯2016年第七届真题-密码脱落 摘要:解题思路:将字符串与反转后的字符串跑一遍最长公共子序列就可以的出最长回文串的长度,减去字符串的长度就可以的出脱落的个数注意事项:参考代码:#include<bits/stdc++.h> using …… 题解列表 2024年04月04日 0 点赞 0 评论 251 浏览 评分:0.0