[编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:暴力破解:#切片运算2#暴力m=input() res=[m[2:]] for i in res: print(i,end=" ")第二种优化方式:# 注意…… 题解列表 2022年04月07日 0 点赞 0 评论 584 浏览 评分:9.9
最小公倍数问题6行解决 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) n=a*b*c for i in range(1,n+1): if i%a==0 and i%…… 题解列表 2022年04月07日 0 点赞 0 评论 358 浏览 评分:9.9
编写题解 1046: [编程入门]自定义函数之数字后移(超容易理解) 摘要:解题思路:注意事项:参考代码:刚开始暴力思路:x=list(map(int,input().split())) h=(x[-2:]+x[:8]) for i in h: print(i,…… 题解列表 2022年04月07日 0 点赞 0 评论 280 浏览 评分:9.9
蓝桥杯算法提高VIP-P0102 摘要:解题思路:无注意事项:无参考代码:s = input()print('Hex: '+'0x'+s)print('Decimal:',end=' …… 题解列表 2022年04月07日 0 点赞 0 评论 232 浏览 评分:0.0
[编程入门]自定义函数之整数处理(超容易入门) 摘要:解题思路:注意事项:参考代码:第一种方式 :答案错误50冒泡排序ls=list(map(int,input().split())) for i in range(len(ls)): for…… 题解列表 2022年04月07日 0 点赞 0 评论 370 浏览 评分:9.9
[编程入门]电报加密(简单入门) 摘要:解题思路:注意事项:参考代码:注意事项:字符串需要引号才能通过ord转换为数字形式a=str(input()) res=[] for i in a: i=ord(i)#122 …… 题解列表 2022年04月07日 0 点赞 0 评论 824 浏览 评分:9.9
使用动态规划进行计算k好数 摘要:解题思路:注意事项:参考代码:###使用动态规划进行计算k好数 mod_num=1000000007 K,L=map(int ,input().split()) dp=[[0]*(K+1) fo…… 题解列表 2022年04月07日 0 点赞 0 评论 464 浏览 评分:9.9
1538: 蓝桥杯算法提高VIP-格子位置(python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) h=int(input()) z=int(input()) for i in range(1,n+1): print(f&#…… 题解列表 2022年04月07日 0 点赞 0 评论 273 浏览 评分:0.0
创建两个列表,一个列表储存分组后的数据,另一个列表储存abcde等级的数目,一定要一一对应 摘要:解题思路:注意事项:参考代码:n=int(input())x=list(map(int,input().strip().split()))a=[]b=[]c=[]d=[]e=[]for i in x:…… 题解列表 2022年04月07日 0 点赞 0 评论 238 浏览 评分:0.0
先用while循环算出答案,直接用while会时间超限,将while改成for循环 摘要:解题思路:注意事项:参考代码:for i in range(2,194980): b=0 for j in str(i): b=int(j)**5+b if b==i:…… 题解列表 2022年04月07日 0 点赞 0 评论 297 浏览 评分:0.0