1223: 敲七游戏 摘要:解题思路:一行解,融入许多函数,运行很爽。注意事项:参考代码:print(len(set(list(map(lambda x : x+1 if (x % 7 == 0 or '7' i…… 题解列表 2023年01月31日 0 点赞 0 评论 509 浏览 评分:0.0
python最简短做法 摘要:解题思路: 在一篇博客找到的原理图。可以根据此图设计六个方向,x,y轴方向如图所示。注意事项: 可以注意到点变化的方向只有(1,0)、(-1,0)、(0,1)、(0,-1)、(1,1)、(-1,-1)…… 题解列表 2023年01月30日 1 点赞 2 评论 1264 浏览 评分:9.5
菜鸟首次尝试(python)超简单解法 摘要:解题思路:注意事项:参考代码:n=int(input())for _ in range(n): x,y=map(int,input().split()) def realsum(n): …… 题解列表 2023年01月29日 0 点赞 0 评论 265 浏览 评分:8.0
二分法,求阶乘 摘要:解题思路:通过规律发现:5!-> end 0 number is 110-> end 0 number is 215->end 0 number is 3…………注意事项:参考代码:import os…… 题解列表 2023年01月29日 0 点赞 0 评论 528 浏览 评分:0.0
字符排列问题 摘要:解题思路:注意事项:参考代码:方法一:直接全排列再去重from itertools import permutationstry: while True: a=input() …… 题解列表 2023年01月29日 0 点赞 0 评论 183 浏览 评分:0.0
取石子游戏 摘要:解题思路:注意事项:参考代码:from math import sqrttry: while True: a,b=map(int,input().split()) i…… 题解列表 2023年01月27日 0 点赞 0 评论 285 浏览 评分:0.0
回文数(python中函数的递归) 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) count = 0 &n 题解列表 2023年01月26日 0 点赞 0 评论 615 浏览 评分:9.9
去括号(我都不知道自己写的啥) 摘要:解题思路:注意事项:参考代码:syouxianji = {'^':6,'/':4,'*':3,'-':2,'+':1,&…… 题解列表 2023年01月26日 0 点赞 0 评论 273 浏览 评分:0.0
蛇形填充数组(python) 摘要:## 前言 本题要考虑多个因素 一个是将填充的三角矩阵化为矩形矩阵 第二个是分段讨论,从左下到右上和从右上到左下交替进行 ## 蛇形填充 我们如果观察可以发现,题目中的填数是斜着填的,如果先…… 题解列表 2023年01月25日 0 点赞 0 评论 294 浏览 评分:6.0
蓝桥杯2022年第十三届决赛真题-取模(Python组) 摘要:解题思路:注意事项:不知道为什么,提交后验证缓慢(要有耐心),但最终是正确的参考代码:t=int(input())l=[list(map(int,input().split())) for _ in …… 题解列表 2023年01月25日 0 点赞 0 评论 770 浏览 评分:5.3