〓Fly〓
〓Fly〓
全部文章
分类
题解(36)
归档
标签
去牛客网
登录
/
注册
〓Fly〓的博客
全部文章
(共33篇)
题解 | #密码验证合格程序#
def f(n): if len(n)<=8: return False s=n.replace(' ','').replace('\n','') a=[0,0,0,0] for i in s: if i.isupper(): ...
Python3
2022-04-19
10
1201
题解 | #坐标移动#
# s = input().split(';') # x,y = 0,0 # for i in s: # try: # if 2<=len(i)<=3 and i[0] in ['A', 'D', 'W', 'S'] and 0<=int(i[1:])<...
Python3
2022-04-15
1
465
题解 | #记负均正#
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
248
题解 | #记票统计#
while True: try: n1=int(input()) s1=input().split() n2=int(input()) s2=input().split() d={} for i ...
Python3
2022-04-10
0
210
题解 | #求最小公倍数#
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
341
题解 | #密码强度等级#
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
352
题解 | #等差数列#
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
189
题解 | #走方格的方案数#
def f(n,m): dp=[[0 for i in range(n+1)] for j in range(m+1)] if n<0 or m<0: return 0 else: for j in range(m+1): ...
Python3
2022-04-10
0
220
题解 | #求最大连续bit数#
while True: try: s=bin(int(input()))[2:].split('0') print(len(max(s))) except: break
Python3
2022-04-09
0
212
题解 | #最长回文子串#
while True: try: s=input() m=0 for i in range(len(s)): for j in range(i+1,len(s)+1): if s[i:j]...
Python3
2022-04-09
0
307
首页
上一页
1
2
3
4
下一页
末页