3151: 蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include<iostream>using namespace std;const int N = 15;//创建飞机结构体struct plane { int Ti, Di, Li;}p[N];…… 题解列表 2024年04月04日 0 点赞 0 评论 410 浏览 评分:0.0
三行简便 编写题解 2797: 最高的分数 摘要:解题思路:map;list;max注意事项:仔细检查中英文符号参考代码:n=int(input())a=list(map(int,input().split()))print(max(a))…… 题解列表 2024年04月04日 0 点赞 0 评论 426 浏览 评分: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 评论 322 浏览 评分: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 评论 333 浏览 评分: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 评论 213 浏览 评分:0.0
蓝桥杯2016年第七届真题-密码脱落 摘要:解题思路:将字符串与反转后的字符串跑一遍最长公共子序列就可以的出最长回文串的长度,减去字符串的长度就可以的出脱落的个数注意事项:参考代码:#include<bits/stdc++.h> using …… 题解列表 2024年04月04日 0 点赞 0 评论 236 浏览 评分:0.0
题解 2821: 开关灯 (思路:单个灯泡按顺序判断并输出) 摘要:```c #include #include int main() { int i,j,N,M,sign=0; bool a; scanf("%d%d",&N…… 题解列表 2024年04月04日 0 点赞 2 评论 232 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:思路: 使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中输入n个数和输出调整后的n个数。参考代码:#include <stdio.h> void yiw…… 题解列表 2024年04月04日 0 点赞 0 评论 202 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中输入n个数和输出调整后的n个数。参考代码:#include <stdio.h> void yi…… 题解列表 2024年04月04日 0 点赞 0 评论 139 浏览 评分:0.0
线段覆盖(线段树) 摘要:解题思路:其实这道题可以不用线段树,可用来对线段树练手注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct tree { …… 题解列表 2024年04月04日 0 点赞 0 评论 174 浏览 评分:0.0