〓Fly〓
〓Fly〓
全部文章
题解
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
/ 题解
(共26篇)
题解 | #迷宫问题#
def dfs(x,y): w=lambda x,y:(x-1,y) s=lambda x,y:(x+1,y) a=lambda x,y:(x,y-1) d=lambda x,y:(x,y+1) if x==m-1 and y==n-1: fo...
Python3
2022-04-24
0
194
题解 | #称砝码#
while True: try: n = int(input()) m = list(map(int, input().split())) x = list(map(int, input().split())) l1 = [] ...
Python3
2022-04-23
0
182
题解 | #字符串加密#
while True: try: key=input() n=input() s=[chr(ord('a')+i) for i in range(26)] #s=('a''b''c''d''e''f''g''h''i''j''k...
Python3
2022-04-23
0
148
题解 | #整数与IP地址间的转换#
n1=list(map(int,input().split('.'))) n2=int(input()) s1='' s2=[] for i in n1: s1+=bin(i)[2:].rjust(8,'0') print(int(s1,2)) for j in range(4): ...
Python3
2022-04-23
0
161
题解 | #合唱队#
import bisect def f(l): lis=[1]*len(l) a=[l[0]] for i in range(1,len(l)): if l[i]>a[-1]: a.append(l[i]) ...
Python3
2022-04-20
0
333
题解 | #记负均正#
while True: try: n=int(input()) s=list(map(int,input().split())) a,b=[],[] c=0 for i in s[:n]: ...
Python3
2022-04-11
0
195
题解 | #记票统计#
while True: try: n1=int(input()) s1=input().split() n2=int(input()) s2=input().split() d={} for i ...
Python3
2022-04-10
0
145
题解 | #求最小公倍数#
while True: try: a,b=map(int,input().split()) for i in range(max(a,b),a*b+1,max(a,b)): if i%min(a,b) == 0: ...
Python3
2022-04-10
1
248
题解 | #密码强度等级#
while True: try: s=input() c=0 if len(s)<=4: c+=5 elif 5<=len(s)<=7: c+=10 ...
Python3
2022-04-10
0
250
题解 | #等差数列#
while True: try: n=int(input()) if 1<=n<=1000: l=list(range(2,2+3*(n-1)+1,3)) print(sum(l)) ...
Python3
2022-04-10
0
120
首页
上一页
1
2
3
下一页
末页