题解列表
1931: 蓝桥杯算法提高VIP-逆序排列
摘要:解题思路:注意事项:参考代码:l=list(map(int,input().split()))
for i in l[:-1][::-1]:
print(i,end=' '……
python-Anagrams问题
摘要:解题思路:注意事项:参考代码:s1 = sorted(input().lower())
s2 = sorted(input().lower())
if s1 == s2:
……
python-2的次幂表示
摘要:解题思路:本题采用了一楼c++大佬的思路,在此基础上稍微进行了一下优化,然后解读一下自己的理解吧。算法的思路核心是对n的二进制数的每一位进行是否为1的判断,然后进行处理。算法上并没有直接对n的二进制数……
2211: 蓝桥杯算法训练-数据交换
摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())
def ca(n,m):
n,m=m,n
return str(n)+' &#……
python-出现次数最多的整数
摘要:解题思路:注意事项:参考代码:n = int(input().strip())
A = dict()
for i in range(n):
n = int(input().s……
python-素因子去重
摘要:解题思路:这道题的意思也就是让你分解n的素因子乘积,然后去掉重复的素因子,将剩下的素因子相乘得到p例如1000 = 2*2*2*5*5*5那么去重之后的素因子为2和5,则p= 2*5 = 10注意事项……
回文数(一)-题解(Python代码)
摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): m=input() s=0 flag=1 while m!=m[::-1]: ……
python党食用(链表详细题解)
摘要:- **类定义**
```python
class Node:
def __init__(self,real,imag): ……
1976: 蓝桥杯算法提高VIP-删除重复元素
摘要:解题思路:注意事项:参考代码:a=input()
for i in a:
if i not in a[:a.index(i)]+a[a.index(i)+1:]:
pri……