题解列表
python,简单明了,清晰易懂。
摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(1, n + 1): if i < (n + 1) // 2 + 1 : print( ……
2591: 蓝桥杯2020年第十一届省赛真题-成绩统计
摘要:n=int(input())lst=[]yx,jg=0,0def sishewuru(renshu,n): origal=renshu*100/n quzheng=int(origal) ……
蓝桥杯算法提高VIP-邮票面值设计
摘要:
# 蓝桥杯算法提高VIP-邮票面值设计
```cpp
#include
#include
#include
using namespace std;
int ans[15]={0}……
###[编程入门]结构体之时间设计-超easy版!!
摘要:###[编程入门]结构体之时间设计-超easy版!!
主要分四步:
1. 创建结构体
2. 判断年份是否为闰年
3. 记录各月份的总天数
4. 对天数累加
先看代码
#i……
蓝桥杯2014年第五届真题-分糖果
摘要:解题思路:注意事项:参考代码:def hs(L): for i in L: if i%2: return 1 else: ……
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:只用考虑输入的0~9这几个数,做循环就行注意事项:参考代码:name = input()
num = int(name[1]) #只看A后面的数
l=1189 #长
w=8……
sort大法//////
摘要:解题思路:会sort排序就行通过定义cmp函数注意事项:数据长度可以用strlen()读取替换10,这里图方便参考代码:#include<iostream>
#include<algorithm>
……
用二分减少一次for循环
摘要:解题思路:注意事项:参考代码:n=int(input())a=[0]+list(map(int,input().split()))b=[0]+list(map(int,input().split())……