题解列表

筛选

Python递推解决约瑟夫环

摘要:解题思路:注意事项:参考代码:n,k=map(int,input().split())a=list(range(1,n+1))s=0for i in range(2,n+1):    s=(s+k)%……

1003一行解(Python)

摘要:解题思路:注意事项:参考代码:print(''.join(list(map(lambda x : chr(ord(x) + 4), input()))))基础代码(完全问题题目要求)c……

蓝桥杯算法提高VIP-乘法运算

解题思路:注意事项:参考代码:m,n=map(int,input().strip().split())g=s=yh=er=jg=0g=n%10s=n//10yh=m*ger=s*mjg=yh+er*10print(f'{m:4d}'.format(m))#两位数与两位数相乘最多四位结果

2861: 验证子串(python)

摘要:解题思路:注意事项:参考代码:a = input().strip() # 注意把前导空格去掉 b = input().strip() if a in b:     print("%s is s……

2858: 整理药名(python)

摘要:解题思路:注意事项:参考代码:n = int(input()) while True: try: s = input() s1 = "" for i in s:   ……

2857: 加密的病历单(python)

摘要:解题思路:注意事项:参考代码:s = input() s1 = "" for i in s:     if (i >= &#39;x&#39; and i <= &#39;z&#39;) or ……

2839: 石头剪刀布(Python)

摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma……