2685: 蓝桥杯2022年第十三届省赛真题-蜂巢 摘要:解题思路:建立新的坐标系,转换坐标,判断距离图中坐标只是表示每个六边形的相对位置,不要理解成几何中心的平面坐标!注意事项:关键在于如何建一个坐标系使得方便判断距离参考代码:d1,p1,q1,d2,p2…… 题解列表 2023年04月04日 2 点赞 1 评论 904 浏览 评分:4.7
密码截获——python 摘要:解题思路:注意事项:参考代码:while True: try: L = input() L2 = [] if len(L) == 1: …… 题解列表 2023年04月04日 0 点赞 0 评论 401 浏览 评分:0.0
孤独的骑士 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): s = 0 m = input() d = [[-1,-2],[-1,2],[1,…… 题解列表 2023年04月04日 0 点赞 0 评论 427 浏览 评分:0.0
数组插入处理,容易理解 摘要:解题思路:注意事项:参考代码:l=list(map(int,input().split())) #map做映射,split是分隔符,l是原始数列组成的列表n=int(input()) #n是要插入的数…… 题解列表 2023年04月04日 0 点赞 0 评论 391 浏览 评分:0.0
第一个pyAC 五行秒杀 摘要:解题思路:注意事项:参考代码:n=int(input())while len(str(n))!=1: x=sum(list(map(int,str(n)))) n=x…… 题解列表 2023年04月03日 0 点赞 0 评论 421 浏览 评分:0.0
纯签到题,str.count直接秒了 摘要:解题思路:注意事项:参考代码:n=int(input())cnt=0for i in range(1,n+1): t=str(i) if t.count('2')>0 or…… 题解列表 2023年04月03日 0 点赞 0 评论 419 浏览 评分:0.0
datetime判断日期合理性即可 摘要:解题思路:注意事项:参考代码:from datetime import datetimedef isValidTime(y,m,d): try: t=datetime(y,m,d)…… 题解列表 2023年04月03日 0 点赞 0 评论 429 浏览 评分:0.0
利用列表内置函数解决 摘要:解题思路:利用list函数count注意事项:参考代码:times = int(input())s = []for i in range(times): s += [j for j in map…… 题解列表 2023年04月03日 0 点赞 0 评论 398 浏览 评分:0.0
逆序数——python 摘要:解题思路:注意事项:参考代码:n = int(input())L = list(map(int,input().split()))s = 0while len(L)>1: a = L[0] …… 题解列表 2023年04月03日 0 点赞 0 评论 377 浏览 评分:0.0
Fibonacci数列——递归 摘要:解题思路:注意事项:参考代码:def fb(n): if n == 1 or n == 2: return 1 else: return fb(n-1)+fb(…… 题解列表 2023年04月03日 0 点赞 0 评论 461 浏览 评分:9.9