题解列表
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:
……
不重复输出的关键是,前面的数比后面的大
摘要:n=int(input())t=ndef rec(n,res): if n<1: if len(res)==1: return for k,x ……