题解列表
蓝桥杯2023年第十四届省赛真题-平方差(python代码详解)-- ‘改编自c++优质题解’
摘要:解题思路: 改编自:蓝桥杯2023年第十四届省赛真题-平方差(c++代码详解) 纯规律 无循环 超简洁 见大佬思路 :只有当x为奇数或4的倍数时才能拆分为两个数的平方差。参……
python搜索,开两个数组记录同行同列
摘要:
a,b=map(int,input().split())
while a!=-1 and b!=-1:
c=[]
d=[0 for x in range(a)]
e……
在原数组中搜索能互质的数---在剩下的数中搜索能互质的数
摘要:
n=int(input())
b=list(map(int,input().split()))
def gcd(a,b):
if a%b == 0:
return ……
深搜,把搜到不同字母记录到数组之中,数组的最大长度就是解
摘要:r,s=map(int,input().split())
b=[]
for x in range(r):
b.append(list(input()))
# print(b)
d=[……
报时助手Python
摘要:解题思路:注意事项:参考代码:nums = {0:'zero', 1:'one', 2:'two', 3:'three', 4:……
信息学奥赛一本通T1616-A的B次方(快速幂)
摘要:```python
def f(Base,Index,Num):
res=1
while Index!=0:
if Index&1:
……